Expand description
Command implementations Command implementations module.
This module contains all command execution logic for the CLI.
§What
Provides implementations for all CLI commands:
- Configuration commands (
init,config) - Changeset commands (
add,list,show,update,edit,remove,history) - Version management commands (
bump,changes) - Upgrade commands (
check,apply,rollback) - Audit commands (
auditwith various modes)
§How
Each command is implemented as an async function that:
- Validates arguments
- Creates necessary managers/services from internal crates
- Executes the operation
- Formats and outputs results
- Returns appropriate exit codes on errors
Commands use the Output context for consistent formatting across
different output modes (human, JSON, compact JSON).
§Why
Separating command logic from CLI definition improves testability, maintainability, and allows reuse of command logic in other contexts.
§Module Organization
Commands will be organized by epic/feature area:
config.rs- Configuration management commandschangeset.rs- Changeset workflow commandsversion.rs- Version management commandsupgrade.rs- Dependency upgrade commandsaudit.rs- Audit and health check commandschanges.rs- Change analysis commands
Modules§
- audit
- Audit command implementations.
- bump
- Bump command implementations module.
- changes
- Changes analysis command implementation.
- changeset
- Changeset command implementations module.
- clone
- Clone command implementation.
- config
- Config command implementation.
- execute
- Workspace execute command implementation.
- init
- Init command implementation.
- status
- Workspace status command implementation.
- upgrade
- Upgrade command implementations.
- version
- Version command implementation.
Functions§
- find_
and_ load_ config - Helper to find and load workspace configuration.