Skip to main content

Module cli

Module cli 

Source
Expand description

Command-line interface for Commit Wizard.

This module provides the CLI implementation, including command parsing, execution, and error handling. The main entry point is the run() function which orchestrates the entire CLI flow.

§Submodules

  • args: Command-line argument definitions and parsing
  • cmd: Executable commands (commit, check, tag, bump, etc.)

§Example

This is the whole cw binary (it is compiled as part of the tests, never run):

fn main() -> std::process::ExitCode {
    commit_wizard::cli::run()
}

Functions§

run
Run the cw command line: parse the arguments, run the command, and report any error.