pub struct InitArgs {
pub tech: String,
pub target: Utf8PathBuf,
pub forge: Option<String>,
pub repo: Option<String>,
pub scopes: Option<String>,
pub apply: bool,
pub json: bool,
}Expand description
Land a technology’s deterministic files into a target repository.
Fields§
§tech: StringThe technology whose files land; one of the bindings.
target: Utf8PathBufThe repository the files land into.
forge: Option<String>The forge whose files land: github or gitlab. Defaults to detection from the target’s git remote; an unrecognized host refuses.
repo: Option<String>The project path on the forge, substituted into the rendered files and recorded as the landing parameter. Defaults to detection from the target’s git remote; an apply with neither refuses.
scopes: Option<String>The Conventional Commit scopes this project accepts, comma-separated, rendered into the title checks and the commit hook and recorded as a landing parameter. An apply without it refuses: the scope vocabulary is a decision, not a default.
apply: boolWrite the files; without it the destinations are listed and nothing is touched.
json: boolEmit one JSON object on stdout instead of the human report.
Trait Implementations§
Source§impl Args for InitArgs
impl Args for InitArgs
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 InitArgs
impl FromArgMatches for InitArgs
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.