pub struct AdoptArgs {
pub target: Utf8PathBuf,
pub tech: Option<String>,
pub forge: Option<String>,
pub repo: 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.
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
Append to
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>
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.Auto Trait Implementations§
impl Freeze for AdoptArgs
impl RefUnwindSafe for AdoptArgs
impl Send for AdoptArgs
impl Sync for AdoptArgs
impl Unpin for AdoptArgs
impl UnsafeUnpin for AdoptArgs
impl UnwindSafe for AdoptArgs
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