Skip to content

Conversation

@jahvon
Copy link
Member

@jahvon jahvon commented Jun 20, 2025

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 library command with a new browse command, introducing a cache command for key-value data management, and updating the config command to align with naming conventions. Additionally, various minor improvements and refactorings enhance usability and maintainability.

Command Restructuring and Renaming:

  • Replaced library command with browse command: The library command has been renamed to browse, 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 store command with cache command: A new cache command 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 vault command to the top level: Vault interactions are now done via flow vault (in prep for some upcoming vault changes)

  • Updated config command: The config command has been updated to rename the view subcommand to get for consistency.

Improvements and Refactorings:

  • Updated logging verbosity flag: Renamed the verbosity flag to log-level with 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 Info to Debug to reduce noise in logs.

  • The non-interactive flag is replaced by output format: The -x non interactive flag was removed. Instead setting the output format to JSON or YAML will toggle that behavior

@codecov
Copy link

codecov bot commented Jun 20, 2025

Codecov Report

Attention: Patch coverage is 0% with 630 lines in your changes missing coverage. Please review.

Project coverage is 22.07%. Comparing base (4888567) to head (fb4ff3f).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
cmd/internal/cache.go 0.00% 197 Missing ⚠️
cmd/internal/browse.go 0.00% 66 Missing ⚠️
cmd/internal/vault.go 0.00% 55 Missing ⚠️
cmd/internal/workspace.go 0.00% 38 Missing ⚠️
internal/io/logs/output.go 0.00% 36 Missing ⚠️
internal/io/cache/views.go 0.00% 29 Missing ⚠️
internal/io/secret/output.go 0.00% 27 Missing ⚠️
cmd/internal/secret.go 0.00% 26 Missing ⚠️
cmd/internal/template.go 0.00% 21 Missing ⚠️
internal/io/cache/output.go 0.00% 19 Missing ⚠️
... and 16 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #236      +/-   ##
==========================================
- Coverage   22.78%   22.07%   -0.71%     
==========================================
  Files          79       84       +5     
  Lines        6751     6958     +207     
==========================================
- Hits         1538     1536       -2     
- Misses       4937     5145     +208     
- Partials      276      277       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jahvon jahvon changed the title feat!: more consistent and clear command usage feat!: improve cli command usage and consistency Jun 20, 2025
@jahvon jahvon merged commit b944b8c into main Jun 20, 2025
10 checks passed
@jahvon jahvon deleted the cmds branch June 20, 2025 17:52
@jahvon jahvon added this to the v1.0 milestone Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants