pub struct InitArgs {
pub profile: ProfileFlags,
pub target: Utf8PathBuf,
pub nix_packaging: bool,
pub reporting_policy: bool,
pub scorecard: bool,
pub workflow_guards: bool,
pub workflow_only: bool,
pub code_scanning: Option<String>,
pub stage: Option<Utf8PathBuf>,
pub replace: Vec<String>,
pub apply: bool,
pub json: bool,
}Expand description
Land the files the target configuration selects into a repository.
Fields§
§profile: ProfileFlagsThe project profile and the Git workflow.
target: Utf8PathBufThe repository the files land into.
nix_packaging: boolOpt the landing into the Nix capability: a seeded package expression and a seed flake pair where the target has none. Recorded as a capability request; off by default, because a packaging surface is a decision, not a default.
reporting_policy: boolRequest the landed vulnerability reporting policy, SECURITY.md.
An automatic release requests it by default; a release-less
profile asks for it with this flag.
scorecard: boolOpt the landing into the Scorecard capability: a workflow that
computes an OpenSSF Scorecard result and publishes it to the public
Scorecard API. GitHub only. Recorded as a capability request; off by
default, because publishing a score is a decision, not a default.
workflow_guards: boolOpt the landing into the workflow guards: the agent and commit policy lines, the glossary, the workflow hooks, and the two workflow setup steps. Off by default, because they shape how a project works rather than what its release needs.
workflow_only: boolLand the Git workflow and nothing of a release: a preset that sets
profile.release.mode = "none", git.integration = "local",
git.checkout_mode = "linked-worktree", and
capabilities.workflow_guards = true, and records those four
answers alone. A flag that contradicts one of them refuses before
any write; a flag the preset does not set, such as --merge-form,
combines with it.
code_scanning: Option<String>Opt the landing into code scanning, naming the provider: codeql, GitHub’s own analyzer, whose terms cover an open-source codebase so the landing reads the driver’s declared licence and refuses the pair where it states no such codebase; or semgrep, which carries no licence condition and runs on either forge. Recorded as a capability request; off by default, because a scanning surface is a decision.
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 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.