pub enum SubtreeCommand {
Add {
path: PathBuf,
remote: String,
},
Diff {
path: PathBuf,
},
Pull {
path: PathBuf,
},
Remove {
path: PathBuf,
},
Ls,
}Expand description
Command that goes after tagit sub
Variants§
Add
Start tracking a new subtree
If remote or subtree are already present, keeps them as is and pulls
Diff
Diff local and remote versions of the subtree
Pull
Pull changes for subtrees
To pull for all subtrees use tagit sub pull '*'
Remove
Stop tracking a subtree
This just removes the remote
Ls
List all the subtrees
All subdirectories of .tagit/sub/ which have a corresponding remote
Trait Implementations§
Source§impl Default for SubtreeCommand
impl Default for SubtreeCommand
Source§fn default() -> SubtreeCommand
fn default() -> SubtreeCommand
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for SubtreeCommand
impl FromArgMatches for SubtreeCommand
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 SubtreeCommand
impl Subcommand for SubtreeCommand
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 SubtreeCommand
impl RefUnwindSafe for SubtreeCommand
impl Send for SubtreeCommand
impl Sync for SubtreeCommand
impl Unpin for SubtreeCommand
impl UnwindSafe for SubtreeCommand
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