pub struct AdoptArgs {
pub target: Utf8PathBuf,
pub profile: ProfileFlags,
pub nix_packaging: bool,
pub reporting_policy: bool,
pub scorecard: bool,
pub workflow_guards: bool,
pub code_scanning: Option<String>,
pub stage: Option<Utf8PathBuf>,
pub replace: Vec<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 binary would render, and no target file is ever changed.
Fields§
§target: Utf8PathBufThe repository to adopt.
profile: ProfileFlagsThe project profile and the Git workflow the candidate is rendered under. The checkout mode chooses which candidate adoption verifies against and never blesses the disk; its default is main-worktree, the compatibility-safe reading of a pre-record target. An automatic release requires the style from the config or the flag: the style changes the bytes, so neither value is a safe guess.
nix_packaging: boolThe target runs the Nix capability: the candidate includes its files, and the record carries the request. A target whose flake pair is its own is verified without the pair, exactly as a landing would have withheld it.
reporting_policy: boolThe target carries the landed reporting policy.
scorecard: boolThe target runs the Scorecard capability: the candidate includes its workflow, and the record carries the request.
workflow_guards: boolThe target runs the workflow guards: the candidate includes their lines, glossary, and hooks, and the record carries the request.
code_scanning: Option<String>The target runs code scanning under this provider: codeql or semgrep. The candidate includes its workflow and the record carries the request.
stage: Option<Utf8PathBuf>Land the answers a stage resolved, read from its receipt and never its bytes; refuses a stage another binary wrote or one taken for another target.
replace: Vec<String>Save a copy of this conflict, then replace it: an unattributed file, or a recorded rendered file someone edited. Repeatable; every conflict not named still refuses.
apply: boolWrite the config and record; without it 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.