Struct xvc_file::XvcFileCLI
source · pub struct XvcFileCLI {
pub verbosity: u8,
pub quiet: bool,
pub workdir: String,
pub config: Option<Vec<String>>,
pub no_system_config: bool,
pub no_user_config: bool,
pub no_project_config: bool,
pub no_local_config: bool,
pub no_env_config: bool,
/* private fields */
}Expand description
Operations on data files
This command can be used to operate on files, like
-
adding files to xvc cache and link by various methods
-
calculating hash of files (even outside of xvc repo)
-
listing files in repo (even if they are deleted from workspace)
-
moving files to other locations
-
deleting files and all their associated cache content
Fields§
§verbosity: u8Verbosity level. Use multiple times to increase command output detail.
quiet: boolDon’t show any messages.
workdir: StringSet the working directory to run the command as if it’s in that directory.
config: Option<Vec<String>>Configuration options set from the command line in the form section.key=value
no_system_config: boolIgnore system config file
no_user_config: boolIgnore user config file
no_project_config: boolIgnore project config (.xvc/config)
no_local_config: boolIgnore local config (.xvc/config.local)
no_env_config: boolIgnore configuration options from the environment
Trait Implementations§
source§impl Args for XvcFileCLI
impl Args for XvcFileCLI
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 XvcFileCLI
impl Clone for XvcFileCLI
source§fn clone(&self) -> XvcFileCLI
fn clone(&self) -> XvcFileCLI
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 XvcFileCLI
impl CommandFactory for XvcFileCLI
source§impl Debug for XvcFileCLI
impl Debug for XvcFileCLI
source§impl FromArgMatches for XvcFileCLI
impl FromArgMatches for XvcFileCLI
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 XvcFileCLI
impl Parser for XvcFileCLI
§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, exit on error
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, exit on error
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, return Err on error.
Auto Trait Implementations§
impl RefUnwindSafe for XvcFileCLI
impl Send for XvcFileCLI
impl Sync for XvcFileCLI
impl Unpin for XvcFileCLI
impl UnwindSafe for XvcFileCLI
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