Skip to main content

CommandResult

Type Alias CommandResult 

Source
pub(crate) type CommandResult = Result<ExitCode, CliError>;
Expand description

Result of a command: the exit code to return, or an error that stopped it.

Aliased Type§

pub(crate) enum CommandResult {
    Ok(ExitCode),
    Err(CliError),
}

Variants§

§1.0.0

Ok(ExitCode)

Contains the success value

§1.0.0

Err(CliError)

Contains the error value