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.Source§impl Parser for DriveCommand
impl Parser for DriveCommand
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for DriveCommand
impl RefUnwindSafe for DriveCommand
impl Send for DriveCommand
impl Sync for DriveCommand
impl Unpin for DriveCommand
impl UnsafeUnpin for DriveCommand
impl UnwindSafe for DriveCommand
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> 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