pub struct RecheckCLI {
pub recheck_method: Option<RecheckMethod>,
pub no_parallel: bool,
pub force: bool,
pub targets: Option<Vec<String>>,
}
Expand description
Check out file from cache by a copy or link
There are three conditions to recheck a file:
- If the workspace copy is missing.
- If the workspace copy is not changed but the user wants to change recheck method. (e.g. from copy to symlink.)
- If the
--force
is set.
If the workspace copy of a file is changed, this command doesn’t overwrite it by default. Set
--force
to do so.
Fields§
§recheck_method: Option<RecheckMethod>
How to track the file contents in cache: One of copy, symlink, hardlink, reflink.
Note: Reflink support requires “reflink” feature to be enabled and uses copy if the underlying file system doesn’t support it.
no_parallel: bool
Don’t use parallelism
force: bool
Force even if target exists.
targets: Option<Vec<String>>
Files/directories to recheck
Trait Implementations§
Source§impl Args for RecheckCLI
impl Args for RecheckCLI
Source§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
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl Clone for RecheckCLI
impl Clone for RecheckCLI
Source§fn clone(&self) -> RecheckCLI
fn clone(&self) -> RecheckCLI
Returns a duplicate 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 RecheckCLI
impl CommandFactory for RecheckCLI
Source§impl Debug for RecheckCLI
impl Debug for RecheckCLI
Source§impl FromArgMatches for RecheckCLI
impl FromArgMatches for RecheckCLI
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 RecheckCLI
impl Parser for RecheckCLI
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§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.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Source§impl PartialEq for RecheckCLI
impl PartialEq for RecheckCLI
Source§impl UpdateFromXvcConfig for RecheckCLI
impl UpdateFromXvcConfig for RecheckCLI
Source§fn update_from_conf(self, conf: &XvcConfig) -> XvcConfigResult<Box<Self>>
fn update_from_conf(self, conf: &XvcConfig) -> XvcConfigResult<Box<Self>>
Update the implementing struct from the configuration.
Reading the relevant keys and values of the config is in implementor’s responsibility. Read more
impl Eq for RecheckCLI
impl StructuralPartialEq for RecheckCLI
Auto Trait Implementations§
impl Freeze for RecheckCLI
impl RefUnwindSafe for RecheckCLI
impl Send for RecheckCLI
impl Sync for RecheckCLI
impl Unpin for RecheckCLI
impl UnwindSafe for RecheckCLI
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more