pub struct DriveCommand {
pub account: Option<String>,
pub command: DriveSubcommands,
}Expand description
Drive: search, read, rename, and move Google Drive files via OAuth2.
Fields§
§account: Option<String>Selects a named Drive account configured in
~/.omni-dev/settings.json (AWS-CLI style, mirrors the top-level
--profile) for this invocation.
Orthogonal to --profile: switching the Drive account never changes
which profile is active, and vice versa (see
ADR-0066,
ADR-0069). Overrides
OMNI_DEV_DRIVE_ACCOUNT. Scoped to the drive subtree — not usable
before the drive subcommand name, only after it, so it can’t
collide with an unrelated subcommand’s own --account flag.
command: DriveSubcommandsThe Drive subcommand to execute.
Implementations§
Source§impl DriveCommand
impl DriveCommand
Sourcepub async fn execute(self) -> Result<()>
pub async fn execute(self) -> Result<()>
Executes the Drive command. auth/account must run without a
resolved client (they manage credentials/account selection); every
other subcommand resolves one shared client once here and
threads it down via DriveSubcommands::dispatch.
Trait Implementations§
Source§impl Args for DriveCommand
impl Args for DriveCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for DriveCommand
impl CommandFactory for DriveCommand
Source§impl FromArgMatches for DriveCommand
impl FromArgMatches for DriveCommand
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.