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 stage: Option<Utf8PathBuf>,
pub replace: Vec<String>,
pub workflow_guards: Option<String>,
pub workflow_only: bool,
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.
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.
workflow_guards: Option<String>Change the recorded workflow guards: on keeps or adds their
lines, glossary, and hooks, and off drops them. A record that
predates the capability carries a pending answer, which this
upgrade reports and answers on unless this flag says otherwise.
Omitted, configuration precedes the recorded choice.
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.
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.