pub enum AccountAction {
Add {
label: String,
no_login: bool,
desktop: bool,
email: Option<String>,
yes: bool,
},
Status {
json: bool,
},
Switch {
label: String,
desktop: bool,
cli: bool,
dry_run: bool,
yes: bool,
force: bool,
keep_bridge: bool,
backup_sessions: bool,
keep_backups: usize,
},
}Variants§
Add
Register an isolated account and open Claude Code to sign it in.
Fields
desktop: boolCapture a Claude Desktop app account under this label instead
of a claude CLI one (macOS). The app has a single login slot, so
this signs it out, waits for you to sign in as the new account, and
saves what it writes. Your current login is restored if you cancel.
Status
Show which Claude account the Desktop app and the claude CLI use.
Switch
Make
Fields
label: StringAccount to switch to. Desktop profiles come from claude-acc’s store;
CLI accounts from [[anthropic.accounts]] / accounts_dir.
force: boolOverwrite a claude CLI login that belongs to no managed account.
That login cannot be saved first, so this discards it.
keep_bridge: boolKeep bridge-state.json rather than clearing it. Diagnostic only:
a stale remote-control session id breaks /remote-control.
Trait Implementations§
Source§impl Clone for AccountAction
impl Clone for AccountAction
Source§fn clone(&self) -> AccountAction
fn clone(&self) -> AccountAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccountAction
impl Debug for AccountAction
Source§impl FromArgMatches for AccountAction
impl FromArgMatches for AccountAction
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for AccountAction
impl Subcommand for AccountAction
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for AccountAction
impl RefUnwindSafe for AccountAction
impl Send for AccountAction
impl Sync for AccountAction
impl Unpin for AccountAction
impl UnsafeUnpin for AccountAction
impl UnwindSafe for AccountAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more