pub struct CloneArgs {
pub remote: String,
pub local: Option<String>,
pub source: Option<CloneSourceArg>,
pub thread: Option<String>,
pub depth: Option<u32>,
pub lazy: bool,
pub insecure: bool,
pub filter: Option<String>,
pub recursive: bool,
}Expand description
Arguments for the clone command.
Help style budget (heddle#652): --help carries the signature, flags,
a one-screen Behavior summary, and the hidden-flag breadcrumb
(heddle#646). The full default-thread fallback chain and –depth
exposition moved to heddle help clone (help.rs CLONE_TOPIC); keep
flag docs single-line so clap renders the compact help layout.
Fields§
§remote: StringRemote repository URL or path.
local: Option<String>Local directory to clone into. Optional when the source has an unambiguous basename.
source: Option<CloneSourceArg>Clone protocol (git or heddle). Failures are not retried on the other protocol.
thread: Option<String>Thread to check out after cloning.
depth: Option<u32>Request a history depth. Hosted native clones currently accept only 0 (full history).
lazy: boolRequest lazy blobs. Hosted native clones currently reject this planned mode.
insecure: boolAllow cleartext (non-TLS) connections to non-loopback hosts.
filter: Option<String>Request lazy blobs (blob:none only). Hosted native clones currently reject it.
recursive: boolClone a whole hosted monorepo: resolve the root spool’s child tree and clone every child spool at its anchored state into its mount path. Hosted/network remotes only. (Alias: –monorepo.)
Implementations§
Trait Implementations§
Source§impl Args for CloneArgs
impl Args for CloneArgs
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for CloneArgs
impl FromArgMatches for CloneArgs
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>
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>
ArgMatches to self.