Skip to main content

Module cli

Module cli 

Source
Expand description

Top-level clap definition for the harn CLI.

Per-subcommand arg structs live in their own modules under crates/harn-cli/src/cli/. The Cli and Command enum here only reference types via pub(crate) use ... re-exports so external consumers can keep using crate::cli::TypeName unchanged.

Some variants of subcommand enums are reached only by destructuring the parent (SubCommand::Foo(args) => ...) and are never referenced by name from outside this module. Those types stay private to their per-subcommand module and are accessed through their parent enum.