pub enum Commands {
Init(InitArgs),
Config(ConfigCommands),
Changeset(ChangesetCommands),
Bump(BumpArgs),
Upgrade(UpgradeCommands),
Audit(AuditArgs),
Changes(ChangesArgs),
Version(VersionArgs),
Clone(CloneArgs),
}Expand description
All available CLI commands.
Each variant represents a top-level command with its associated arguments.
§Examples
use clap::Parser;
use sublime_cli_tools::cli::{Cli, Commands};
let cli = Cli::parse_from(["workspace", "init"]);
matches!(cli.command, Commands::Init(_));Variants§
Init(InitArgs)
Initialize project configuration.
Creates a new configuration file for changeset-based version management. Supports interactive and non-interactive modes.
Config(ConfigCommands)
Manage configuration.
View, validate, and modify project configuration.
Changeset(ChangesetCommands)
Manage changesets.
Create, update, list, and manage changesets for version control.
Bump(BumpArgs)
Bump package versions based on changesets.
Calculates and applies version bumps according to active changesets and the configured versioning strategy.
Upgrade(UpgradeCommands)
Manage dependency upgrades.
Check for available upgrades and apply them to workspace packages.
Audit(AuditArgs)
Run project health audit.
Analyzes project health including upgrades, dependencies, version consistency, and breaking changes.
Changes(ChangesArgs)
Analyze changes in repository.
Detects which packages are affected by changes in the working directory or between commits.
Version(VersionArgs)
Display version information.
Shows the CLI version and optionally detailed build information.
Clone(CloneArgs)
Clone a repository and setup workspace.
Clones a Git repository and automatically initializes or validates workspace configuration for immediate development.
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand