pub struct AdoptArgs {
pub target: Utf8PathBuf,
pub profile: ProfileFlags,
pub nix_packaging: bool,
pub reporting_policy: bool,
pub scorecard: bool,
pub code_scanning: 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 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.
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.
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.