pub struct StageArgs {
pub action: Option<StageAction>,
pub tech: Option<String>,
pub target: Utf8PathBuf,
pub forge: Option<String>,
pub repo: Option<String>,
pub workflow: Option<String>,
pub style: Option<String>,
pub nix: bool,
pub output: Option<Utf8PathBuf>,
pub json: bool,
}Expand description
Write the candidate this binary would land in a target into a disposable stage, beside the knowledge that explains it.
Reads the target and writes nothing inside it. The stage holds every
proposed destination under artifacts/, the changelog, guidance,
method, bindings, runbooks, forge notes, and setup skill under
reference/, and one explanatory stage.json. Production landing
never reads a stage; rk stage clean <path> removes one.
Fields§
§action: Option<StageAction>The one companion: remove a stage.
tech: Option<String>The technology whose candidate is staged; one of the bindings.
target: Utf8PathBufThe repository the candidate is computed for; read, never written.
forge: Option<String>The forge whose files are staged: github or gitlab. Defaults to detection from the target’s git remote.
repo: Option<String>The project path on the forge, substituted into the rendered files. Defaults to detection from the target’s git remote.
workflow: Option<String>The working-copy mode the candidate renders under: worktree or branches.
style: Option<String>The release style the candidate renders under: trunk or lines.
nix: boolStage the Nix capability too.
output: Option<Utf8PathBuf>The exact directory to stage into; it must be absent or empty.
Without it, a target and version directory below RK_STAGE_ROOT,
else below the private state root.
json: boolEmit one JSON object on stdout instead of the human report.
Trait Implementations§
Source§impl Args for StageArgs
impl Args for StageArgs
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 StageArgs
impl FromArgMatches for StageArgs
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.