Crate clap_utils

Source

Re-exports§

pub use anyhow;
pub use atty;
pub use clap;
pub use dialoguer;
pub use strum;

Modules§

prelude

Macros§

bail
Return early with an error.
ensure
Return early with an error if a condition is not satisfied.
error_report
mod_pub_use
define and pub use the mod
paste
subcmd
define a new subcommand

Structs§

Error
The Error type, a wrapper around a dynamic error type.

Enums§

ShellType

Traits§

Context
Provides the context method for Result.
Highlight
Parser
Parse command-line arguments into Self.

Type Aliases§

Result
Result<T, Error>

Attribute Macros§

async_trait
enum_dispatch
Annotating a trait or enum definition with an #[enum_dispatch] attribute will register it with the enum_dispatch library, allowing it to be used to generate impl blocks elsewhere.

Derive Macros§

EnumString
Converts strings to enum variants based on their name.
Parser
Generates the Parser implementation.