Open saademad200 opened 2 months ago
I appreciate the intent for improvement. Here are my comments,
1. Unreviewed execution: Commands are written directly into the terminal without giving the user the opportunity to review them before execution. The command is indeed written to the terminal, however it is intentionally not executed to let the user review/modify it before execution. Item 2 below actually confirms this.
2. Incomplete execution: - When a single command is generated, it is not properly executed because it is not followed by an "Enter" keypress. This is by design, see comment above.
- Incomplete command execution: Single commands do not execute, and in the case of multiple commands, the last one is skipped unless manually entered by the user, leading to potential errors in workflows. I admit to have not tested this for "multiple commands" and I see two concerns around that .
MISC : I like the idea of printing commands to terminal and letting user execute them by entering their way through, but this will bare the user with the option to modify the commands at hand if they wanted to.
The package should have explained its design philosophy but in the haste of things I left that out. I hope the response above adds some clarity.
Problem Description:
The current implementation automatically writes and executes terminal commands using
pyautogui.write()
. There are two key issues:Current Code:
Risks:
Proposed Fix:
Suggested Code Update:
Benefits of the Fix:
Severity: