Skip to content

Simplify command usage - #150

Merged
graywolf336 merged 5 commits into
devfrom
bug/workspace-default
Aug 7, 2026
Merged

graywolf336 merged 5 commits into
devfrom
bug/workspace-default

Conversation

@leefaus

@leefaus leefaus commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

This pull request introduces several improvements and refactorings to the CLI, especially around the insert command and shell completion support. The most significant changes include a rework of the insert command for clarity and extensibility, enhanced shell completion support, and improved workspace/org resolution logic.

Insert Command Refactor and Improvements:

  • The insert command and its subcommands have been refactored for clarity and consistency:

    • from-view is now view (with from-view as an alias for compatibility).
    • pick is now change (with pick as an alias).
    • Arguments and help messages are clearer, and new options like --dry-run and --confirm are available at the top level. [1] [2] [3] [4] [5] [6] [7] [8]
  • Argument completion is now supported for change hashes and view names, improving the CLI experience. (F2e98f98L2R6, [1] [2] [3] [4] [5] [6]

Shell Completion Support:

  • Adds a static completions command to generate shell completion scripts for various shells (bash, zsh, fish, etc.), using clap_complete. [1] [2] [3]

Workspace and Organization Resolution Logic:

  • Refactors how the CLI resolves the default organization and workspace:
    • Now falls back to the personal org of the active identity if no default is set, improving the out-of-the-box experience.
    • Workspace resolution now consistently uses the active server profile, aligning with how atomic workspace set works. [1] [2] [3] [4] [5] [6]

Overall, these changes make the CLI more user-friendly, consistent, and extensible, while improving shell integration and argument completion.

@graywolf336
graywolf336 force-pushed the bug/workspace-default branch from 00c6a68 to fcac364 Compare August 7, 2026 14:58
@graywolf336
graywolf336 merged commit cd2fb15 into dev Aug 7, 2026
8 checks passed
@graywolf336
graywolf336 deleted the bug/workspace-default branch August 7, 2026 15:22
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