TReq
TReq copied to clipboard
Add Auto Complete for subcommand and flags
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/.