Commands

Enum Commands 

Source
pub enum Commands {
    Add {
Show 16 fields alias_name: Option<String>, token: Option<String>, url: Option<String>, model: Option<String>, small_fast_model: Option<String>, max_thinking_tokens: Option<u32>, api_timeout_ms: Option<u32>, claude_code_disable_nonessential_traffic: Option<u32>, anthropic_default_sonnet_model: Option<String>, anthropic_default_opus_model: Option<String>, anthropic_default_haiku_model: Option<String>, force: bool, interactive: bool, token_arg: Option<String>, url_arg: Option<String>, from_file: Option<String>,
}, Remove { alias_names: Vec<String>, }, List { plain: bool, }, Completion { shell: String, }, }
Expand description

Available subcommands for configuration management

Variants§

§

Add

Add a new Claude API configuration

Stores a new configuration with alias, API token, base URL, and optional model settings

Fields

§alias_name: Option<String>

Configuration alias name (used to identify this config)

§token: Option<String>

ANTHROPIC_AUTH_TOKEN value (your Claude API token)

§url: Option<String>

ANTHROPIC_BASE_URL value (API endpoint URL)

§model: Option<String>

ANTHROPIC_MODEL value (custom model name)

§small_fast_model: Option<String>

ANTHROPIC_SMALL_FAST_MODEL value (Haiku-class model for background tasks)

§max_thinking_tokens: Option<u32>

ANTHROPIC_MAX_THINKING_TOKENS value (Maximum thinking tokens limit)

§api_timeout_ms: Option<u32>

API timeout in milliseconds

§claude_code_disable_nonessential_traffic: Option<u32>

Disable non-essential traffic flag

§anthropic_default_sonnet_model: Option<String>

Default Sonnet model name

§anthropic_default_opus_model: Option<String>

Default Opus model name

§anthropic_default_haiku_model: Option<String>

Default Haiku model name

§force: bool

Force overwrite existing configuration

§interactive: bool

Interactive mode for entering configuration values

§token_arg: Option<String>

Positional token argument (for backward compatibility)

§url_arg: Option<String>

Positional URL argument (for backward compatibility)

§from_file: Option<String>

Import configuration from a JSON file (uses filename as alias)

§

Remove

Remove one or more configurations by alias name

Deletes stored configurations by their alias names

Fields

§alias_names: Vec<String>

Configuration alias name(s) to remove (one or more)

§

List

List all stored configurations

Displays all saved configurations with their aliases, tokens, and URLs

Fields

§plain: bool

Output in plain text format (default is JSON)

§

Completion

Generate shell completion scripts

Generates completion scripts for supported shells

Fields

§shell: String

Shell type (fish, zsh, bash, elvish, powershell)

Trait Implementations§

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.