Description
It would be beneficial to introduce an interactive mode to the RPS script manager, allowing users to select and run scripts interactively. This mode would display a list of available scripts, and users could navigate through them using arrow keys. Once a script is selected, the user can input any additional arguments required before executing the script.
Example Flow:
- The user runs the command
rps.
- RPS displays a list of available scripts:
Which scripts do you want to run?
1) build
2) compile
3) format
- The user navigates using the arrow keys and selects the desired script.
- If needed, RPS prompts the user to input additional arguments.
- The selected script runs with the provided arguments.
Benefits
- Improved Usability: Users can quickly choose scripts without remembering exact names or typing them out, reducing the chance of errors.
- Efficiency: This mode will be especially useful for large projects with many scripts, streamlining the process of running commands.
- User-Friendly Interface: The interactive mode provides a more intuitive and user-friendly interface, particularly beneficial for new users or those who frequently switch between projects.
Implementation Notes:
- The interactive mode could be triggered simply by running
rps without any additional arguments.
- It should also support the nesting of scripts, displaying nested options as the user navigates through the list.
- Consider adding the ability to provide default arguments for each script, which can be overridden by user input in the interactive mode.
Description
It would be beneficial to introduce an interactive mode to the RPS script manager, allowing users to select and run scripts interactively. This mode would display a list of available scripts, and users could navigate through them using arrow keys. Once a script is selected, the user can input any additional arguments required before executing the script.
Example Flow:
rps.Benefits
Implementation Notes:
rpswithout any additional arguments.