Skip to main content

Crate cmdkit

Crate cmdkit 

Source

Re-exports§

pub use cli::Argument;
pub use cli::ArgumentDefinition;
pub use cli::ArgumentValue;
pub use cli::Command;
pub use cli::CommandBuilder;
pub use cli::CommandMetaData;
pub use cli::CommandStrategy;
pub use cli::FunctionStrategy;
pub use cli::StrategyError;
pub use cli::StrategyErrorKind;
pub use cli::SubcommandCatalog;
pub use cli::SubcommandRouter;
pub use cli::SwitchDefinition;
pub use cli::argument;
pub use cli::command;
pub use cli::switch;
pub use core::logging::ConsoleLogSink;
pub use core::logging::LogLevel;
pub use core::logging::LogSink;
pub use core::ArgumentInterpreter;
pub use core::CMDKit;
pub use core::CMDKitBuilder;
pub use core::CMDKitError;
pub use core::CMDKitMaster;
pub use core::CoreConfig;
pub use core::ExecutionContext;
pub use core::ExecutionHandle;
pub use core::HelpRenderer;
pub use core::InvocationArgs;
pub use core::InvocationElement;
pub use core::PlainTextArgumentInterpreter;
pub use core::PlainTextHelpRenderer;

Modules§

cli
Public CLI primitives for implementation-first command trees, parsed strategy dispatch, and strategy error types.
core
Instance-owned CLI runtime, routing error types, and help rendering.

Functions§

run_with_commands
Runs a fresh default CMDKit instance with pre-built commands.
try_run_with_commands
Runs a fresh default CMDKit instance with pre-built commands.