pub enum Subcommands {
Status(StatusOpts),
Ffmerge(MergeOpts),
Tag(TagOpts),
Exec(ExecOpts),
RawCommand(Vec<String>),
}
Variants§
Status(StatusOpts)
Provides a compact git status
This subcommand prints a summary of the git status of all the directories. This by default will skip printing anything for directories that are on their normal branch and have no outstanding status items (modified files, untracked changes). The goal is to have a quick oversight of all your outstanding changes waiting for a commit.
Ffmerge(MergeOpts)
Fast-forward merges your branch from its upstream branch, if possible.
This subcommand will attempt a fast-forward merge for any git repositories which have changes to be merged. It will print a message if the merge is not a fast-forward.
Tag(TagOpts)
Manipulate the tagged directories
This provides a number of subcommands for manipulating which directories are tagged with which tags.
Exec(ExecOpts)
Execute an arbitrary shell command
This command is just here as a placeholder for the documentation, if the command doesn’t overlap with any of dirmux’s subcommand names, you may omit the ‘exec’ subcommand to have the same effect.
RawCommand(Vec<String>)
Any command is also allowed
Trait Implementations§
Source§impl Clone for Subcommands
impl Clone for Subcommands
Source§fn clone(&self) -> Subcommands
fn clone(&self) -> Subcommands
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Subcommands
impl Debug for Subcommands
Source§impl PartialEq for Subcommands
impl PartialEq for Subcommands
Source§impl StructOpt for Subcommands
impl StructOpt for Subcommands
Source§fn from_clap(matches: &ArgMatches<'_>) -> Self
fn from_clap(matches: &ArgMatches<'_>) -> Self
clap::ArgMatches
. It’s guaranteed to succeed
if matches
originates from an App
generated by StructOpt::clap
called on
the same type, otherwise it must panic.Source§fn from_args() -> Selfwhere
Self: Sized,
fn from_args() -> Selfwhere
Self: Sized,
std::env::args_os
).
Calls clap::Error::exit
on failure, printing the error message and aborting the program.Source§fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
fn from_args_safe() -> Result<Self, Error>where
Self: Sized,
std::env::args_os
).
Unlike StructOpt::from_args
, returns clap::Error
on failure instead of aborting the program,
so calling .exit
is up to you.Source§fn from_iter<I>(iter: I) -> Self
fn from_iter<I>(iter: I) -> Self
Vec
of your making.
Print the error message and quit the program in case of failure. Read more