pub enum AuthCmd {
Login {
token: Option<String>,
force: bool,
},
Status,
Token,
Logout,
SetupGit,
Switch {
user: String,
},
GitCredential(GitCredentialCmd),
}Variants§
Login
Store a personal access token (validated against the API unless –force).
Status
Show whether you are logged in and where the token is stored.
Token
Print the active token (e.g. to pipe into another tool).
Logout
Forget the stored token for the current host.
SetupGit
Configure git to use gitee as a credential helper for this host.
Switch
Switch the active user for this host.
GitCredential(GitCredentialCmd)
Git credential-helper protocol (usually invoked by git, not humans).
Trait Implementations§
Source§impl FromArgMatches for AuthCmd
impl FromArgMatches for AuthCmd
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>
Assign values from
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>
Assign values from
ArgMatches to self.Source§impl Subcommand for AuthCmd
impl Subcommand for AuthCmd
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
Append to
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
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for AuthCmd
impl RefUnwindSafe for AuthCmd
impl Send for AuthCmd
impl Sync for AuthCmd
impl Unpin for AuthCmd
impl UnsafeUnpin for AuthCmd
impl UnwindSafe for AuthCmd
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
Mutably borrows from an owned value. Read more