feat!: improve cli command usage and consistency #236
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Includes some breaking CLI usage changes in prep for a couple of new features coming soon
This pull request introduces significant changes to the command-line interface (CLI) by renaming and restructuring commands, adding new functionality, and improving consistency across the codebase. The most notable updates include replacing the
librarycommand with a newbrowsecommand, introducing acachecommand for key-value data management, and updating theconfigcommand to align with naming conventions. Additionally, various minor improvements and refactorings enhance usability and maintainability.Command Restructuring and Renaming:
Replaced
librarycommand withbrowsecommand: Thelibrarycommand has been renamed tobrowse, with updated functionality and aliases (ls,library). The new command introduces features for discovering executables interactively or via list views, and deprecates the "library" alias.Replaced
storecommand withcachecommand: A newcachecommand has been added to manage temporary key-value data. It includes subcommands for setting, getting, listing, removing, and clearing cached data, with support for interactive input and persistent storage.Moved the
secret vaultcommand to the top level: Vault interactions are now done viaflow vault(in prep for some upcoming vault changes)Updated
configcommand: Theconfigcommand has been updated to rename theviewsubcommand togetfor consistency.Improvements and Refactorings:
Updated logging verbosity flag: Renamed the
verbosityflag tolog-levelwith clearer options (debug,info,fatal) and a shorthand flag-L.Improved logging behavior: Changed the log level for a number of internal flow messages from
InfotoDebugto reduce noise in logs.The non-interactive flag is replaced by output format: The
-xnon interactive flag was removed. Instead setting the output format to JSON or YAML will toggle that behavior