1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Arguments for `rk guide`.
use clap::Args;
/// Print a runbook with what detection knows filled in, or list them.
#[derive(Debug, Args)]
pub struct GuideArgs {
/// The runbook to print; omit it and pass --list to see the names.
pub name: Option<String>,
/// List the runbooks instead of printing one.
#[arg(long)]
pub list: bool,
/// Select the release driver's lines where the runbook branches;
/// defaults to the configured or recorded driver, then to detection
/// from the version files.
#[arg(long, alias = "tech", value_name = "NAME")]
pub technology: Option<String>,
/// Select the forge's lines where the runbook branches; defaults to
/// detection from the git remote.
#[arg(long)]
pub forge: Option<String>,
/// The project path substituted for <repo>; defaults to detection from
/// the git remote.
#[arg(long)]
pub repo: Option<String>,
/// Select the checkout mode's lines where the runbook branches:
/// linked-worktree or main-worktree. Defaults to the mode the
/// configuration or the landing record states; without either, every
/// variant prints with its label.
#[arg(long, alias = "workflow", value_name = "MODE")]
pub checkout_mode: Option<String>,
/// Select the release style's lines where the runbook branches: trunk
/// or lines. Defaults to the style the configuration or the landing
/// record states; without either, every variant prints with its label.
#[arg(long, alias = "style", value_name = "STYLE")]
pub release_style: Option<String>,
}