pub enum RepoCmd {
Switch {
path: Option<String>,
name: Option<String>,
repo_id: Option<Uuid>,
user: bool,
session_id: Option<String>,
},
Status {
session_id: Option<String>,
path: Option<String>,
},
Reset {
user: bool,
session_id: Option<String>,
},
}Expand description
Sub-actions for repo (workspace/detached mode).
Variants§
Switch
Bind tracing to a registered repo for the current session and print its
policies. Give a checkout --name is deprecated and always
errors, telling you to bind by path instead.
Fields
§
name: Option<String>Deprecated: name-only binding is no longer supported and always
errors; bind by checkout path instead (repo switch <path>).
§
repo_id: Option<Uuid>Which of the codebase’s repo records to bind, when .visdom/tracing.toml) and errors if none of them is.
Status
Show the repo the current session is bound to.
Fields
Reset
Clear the current session’s binding, or (with –user) the user-level default.
Trait Implementations§
Source§impl FromArgMatches for RepoCmd
impl FromArgMatches for RepoCmd
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 RepoCmd
impl Subcommand for RepoCmd
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 Forget for RepoCmd
impl Freeze for RepoCmd
impl Move for RepoCmd
impl RefUnwindSafe for RepoCmd
impl Send for RepoCmd
impl Sync for RepoCmd
impl Unpin for RepoCmd
impl UnsafeUnpin for RepoCmd
impl UnwindSafe for RepoCmd
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