Skip to content

Feature Suggestion: Interactive Mode for Running Commands #22

@shtse8

Description

@shtse8

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:

  1. The user runs the command rps.
  2. RPS displays a list of available scripts:
    Which scripts do you want to run?
    1) build
    2) compile
    3) format
    
  3. The user navigates using the arrow keys and selects the desired script.
  4. If needed, RPS prompts the user to input additional arguments.
  5. 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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions