pub struct UpgradeArgs {
pub target: Utf8PathBuf,
pub profile: ProfileFlags,
pub nix_packaging: Option<String>,
pub reporting_policy: Option<String>,
pub scorecard: Option<String>,
pub code_scanning: Option<String>,
pub apply: bool,
pub json: bool,
}Expand description
Take a landed target to this binary’s projection.
Flags resolve over configuration, and recorded answers stand where
both are silent. Preview by default; --apply replaces every recorded
generated file, preserves every seeded and state file, and rewrites
the receipt last.
Fields§
§target: Utf8PathBufThe landed repository to upgrade.
profile: ProfileFlagsThe project profile and the Git workflow, each flag overriding the configured answer; the apply writes the answer back into the config. Omitted, the config answers first and the record is the fallback.
nix_packaging: Option<String>Change the recorded Nix request: on adds the capability’s files
and records it; off drops them from the record while the files
stay on disk as the target’s own, like any file this binary stops
shipping. Omitted, configuration precedes the recorded choice.
reporting_policy: Option<String>Change the recorded reporting policy request: on lands
SECURITY.md and records it; off drops it from the record while
the file stays on disk as the target’s own.
scorecard: Option<String>Change the recorded Scorecard request: on adds the workflow and
records it; off drops it from the record while the file stays on
disk as the target’s own, like any file this binary stops shipping.
Omitted, configuration precedes the recorded choice.
code_scanning: Option<String>Change the recorded code scanning provider: codeql or semgrep
lands that provider’s workflow and records it; off drops it from
the record while the file stays on disk as the target’s own. Omitted,
configuration precedes the recorded choice.
apply: boolWrite the upgrade; without it every file’s action is listed and
nothing is touched. rk stage is the full-byte comparison surface.
json: boolEmit one JSON object on stdout instead of the human report.
Trait Implementations§
Source§impl Args for UpgradeArgs
impl Args for UpgradeArgs
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 Debug for UpgradeArgs
impl Debug for UpgradeArgs
Source§impl FromArgMatches for UpgradeArgs
impl FromArgMatches for UpgradeArgs
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.