TReq icon indicating copy to clipboard operation
TReq copied to clipboard

Add Auto Complete for subcommand and flags

Open talis-fb opened this issue 1 year ago • 0 comments

Description

To elevate the user experience, the proposal is to introduce an auto-complete feature

At present, the system lacks inherent auto-completion functionality. This addition aims to assist users in seamlessly completing commands, thereby improving their interaction with the software, reducing the likelihood of errors, and enhancing overall efficiency.

Expected Behavior

  • [ ] Provide auto-complete for all subcommands and flags.
  • [ ] Provide auto-complete for flags like --url and --method.
  • [ ] For flags like --method, provide auto-completion with possible unique values. (POST | GET | PUT ....)

Possible Solution/Implementation

Since the project utilizes Clap for managing the CLI interface, the proposed solution involves configuring or extending its features. Auto-completing saved requests can be achieved by reading the names of all files in {DATA_FOLDER}/collections/.

talis-fb avatar Jan 26 '24 21:01 talis-fb