pub struct AdoptArgs {
pub target: Utf8PathBuf,
pub tech: Option<String>,
pub forge: Option<String>,
pub repo: Option<String>,
pub scopes: Option<String>,
pub apply: bool,
pub json: bool,
}Expand description
Write the landing record for a repository that already runs the convention, landed before the record existed.
Strict: every rendered file must match what this payload would render, and no target file is ever changed.
Fields§
§target: Utf8PathBufThe repository to adopt.
tech: Option<String>The technology whose payload the target runs. Defaults to detection from the version file.
forge: Option<String>The forge whose payload the target runs: github or gitlab. Defaults to detection from the target’s git remote.
repo: Option<String>The project path on the forge, the parameter the candidate is rendered under. Defaults to detection from the target’s git remote.
scopes: Option<String>The Conventional Commit scopes this project accepts, comma-separated, the parameter the candidate is rendered under and the record carries. There is no record to read it from yet, so the adoption refuses without it.
apply: boolWrite the record; without it the verification runs and nothing is touched.
json: boolEmit one JSON object on stdout instead of the human report.
Trait Implementations§
Source§impl Args for AdoptArgs
impl Args for AdoptArgs
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 AdoptArgs
impl FromArgMatches for AdoptArgs
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.