feat: phase 2 — playbooks (am history --save + am playbook, rejeu pas à pas) (closes #51)
This commit is contained in:
+15
@@ -407,6 +407,21 @@ pub enum Command {
|
||||
/// Re-run the Nth most recent entry (with confirmation)
|
||||
#[arg(long, value_name = "N")]
|
||||
rerun: Option<usize>,
|
||||
/// Range to export as a playbook: "12..25" (1-based, newest first)
|
||||
#[arg(value_name = "RANGE")]
|
||||
range: Option<String>,
|
||||
/// Export the range as a playbook YAML file (issue #51)
|
||||
#[arg(long, value_name = "FILE")]
|
||||
save: Option<PathBuf>,
|
||||
},
|
||||
/// Replay a saved playbook step by step with confirmation (issue #51)
|
||||
Playbook {
|
||||
/// Playbook file (state_dir/playbooks/ when a bare name is given)
|
||||
#[arg(value_name = "FILE")]
|
||||
path: PathBuf,
|
||||
/// Variable values, repeatable: --var name=value
|
||||
#[arg(long, value_name = "NAME=VALUE")]
|
||||
var: Vec<String>,
|
||||
},
|
||||
/// Show detailed information about one agent
|
||||
Info {
|
||||
|
||||
Reference in New Issue
Block a user