summaryrefslogtreecommitdiff
path: root/makima/src/daemon/cli
diff options
context:
space:
mode:
Diffstat (limited to 'makima/src/daemon/cli')
-rw-r--r--makima/src/daemon/cli/directive.rs15
-rw-r--r--makima/src/daemon/cli/mod.rs3
2 files changed, 18 insertions, 0 deletions
diff --git a/makima/src/daemon/cli/directive.rs b/makima/src/daemon/cli/directive.rs
index cd94a56..2e6ac1d 100644
--- a/makima/src/daemon/cli/directive.rs
+++ b/makima/src/daemon/cli/directive.rs
@@ -110,3 +110,18 @@ pub struct BatchAddStepsArgs {
#[arg(long)]
pub json: String,
}
+
+/// Arguments for update command.
+#[derive(Args, Debug)]
+pub struct UpdateArgs {
+ #[command(flatten)]
+ pub common: DirectiveArgs,
+
+ /// PR URL to store on the directive
+ #[arg(long)]
+ pub pr_url: Option<String>,
+
+ /// PR branch name to store on the directive
+ #[arg(long)]
+ pub pr_branch: Option<String>,
+}
diff --git a/makima/src/daemon/cli/mod.rs b/makima/src/daemon/cli/mod.rs
index 98923d9..bcaaa70 100644
--- a/makima/src/daemon/cli/mod.rs
+++ b/makima/src/daemon/cli/mod.rs
@@ -246,6 +246,9 @@ pub enum DirectiveCommand {
/// Batch add multiple steps from JSON
BatchAddSteps(directive::BatchAddStepsArgs),
+
+ /// Update directive metadata (PR URL, etc.)
+ Update(directive::UpdateArgs),
}
impl Cli {