Struct magoo::StatusCommand
source · pub struct StatusCommand {
pub git: bool,
pub long: bool,
pub fix: bool,
pub options: PrintOptions,
}Expand description
The status command
Fields§
§git: boolShow the current git version and if it is supported
long: boolShow more information in a longer format
fix: boolFix the submodules to be in a consistent state. (CAUTION - you should never have to do this if you let magoo manage the submodules, be sure to read the details in magoo status --help before using!)
If any submodule appears to be broken (likely due to changing the git files manually), this will attempt to bring the submodule back to a consistent state by de-initializing it.
USE WITH CAUTION - If the submodule state is so broken that there’s not enough information to fix it, it will be removed from existence. This may delete local files and directories that look like submodules because they are referenced by git files.
options: PrintOptionsPrint options
Implementations§
Trait Implementations§
source§impl Args for StatusCommand
impl Args for StatusCommand
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentssource§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
source§impl Clone for StatusCommand
impl Clone for StatusCommand
source§fn clone(&self) -> StatusCommand
fn clone(&self) -> StatusCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl CommandFactory for StatusCommand
impl CommandFactory for StatusCommand
source§impl Debug for StatusCommand
impl Debug for StatusCommand
source§impl Default for StatusCommand
impl Default for StatusCommand
source§fn default() -> StatusCommand
fn default() -> StatusCommand
Returns the “default value” for a type. Read more
source§impl FromArgMatches for StatusCommand
impl FromArgMatches for StatusCommand
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(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§impl Parser for StatusCommand
impl Parser for StatusCommand
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Update from iterator, return Err on error.
source§impl PartialEq for StatusCommand
impl PartialEq for StatusCommand
source§fn eq(&self, other: &StatusCommand) -> bool
fn eq(&self, other: &StatusCommand) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for StatusCommand
Auto Trait Implementations§
impl RefUnwindSafe for StatusCommand
impl Send for StatusCommand
impl Sync for StatusCommand
impl Unpin for StatusCommand
impl UnwindSafe for StatusCommand
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