pub struct InitArgs {
pub profile: ProfileFlags,
pub target: Utf8PathBuf,
pub nix_packaging: bool,
pub reporting_policy: bool,
pub scorecard: bool,
pub code_scanning: Option<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.
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 is not OSI-approved; 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.
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.