pub enum RunCommands {
Show 13 variants
Create {
workflow: String,
payload: Option<String>,
payload_file: Option<PathBuf>,
max_retries: Option<u32>,
idempotency_key: Option<String>,
max_cost: Option<f64>,
concurrency_key: Option<String>,
},
List {
status: Option<String>,
workflow: Option<String>,
created_by: Option<Uuid>,
page: Option<u32>,
per_page: Option<u32>,
},
Get {
id: Uuid,
},
Cancel {
id: Uuid,
},
Approve {
id: Uuid,
},
Reject {
id: Uuid,
},
Input {
id: Uuid,
step_id: Uuid,
value: Option<String>,
value_file: Option<PathBuf>,
},
RejectInput {
id: Uuid,
step_id: Uuid,
reason: Option<String>,
},
Retry {
id: Uuid,
force: bool,
},
Replay {
id: Uuid,
},
Watch {
id: Uuid,
no_logs: bool,
timeout: Option<Duration>,
},
Plan {
workflow: String,
input: Option<String>,
input_file: Option<PathBuf>,
max_depth: Option<u32>,
no_estimates: bool,
},
Diff {
run_a: Uuid,
run_b: Uuid,
},
}Expand description
Available run subcommands.
Variants§
Create
Create a new run for a workflow.
Fields
max_retries: Option<u32>How many times to replay the run automatically after a transient failure. Defaults to 0 (no automatic retry).
idempotency_key: Option<String>Idempotency key making the call safe to replay.
Reusing the same key returns the run it already created instead of starting a second one. Valid for 24 hours. At most 255 printable ASCII characters.
List
List runs with optional filters.
Fields
Get
Get details of a specific run.
Cancel
Cancel a pending or running run.
Approve
Approve a run waiting for approval.
Reject
Reject a run waiting for approval, failing it.
Input
Answer a human input step; the value must match the step’s JSON schema.
Fields
RejectInput
Reject a human input step; the handler receives the rejection.
Fields
Retry
Retry a failed run.
Fields
Replay
Replay a finished run on the current handler version.
Watch
Watch a run in real time via SSE.
Fields
Plan
Show the execution plan for a workflow without running it.
Fields
Diff
Compare two runs of the same workflow side by side.
Trait Implementations§
Source§impl Debug for RunCommands
impl Debug for RunCommands
Source§impl FromArgMatches for RunCommands
impl FromArgMatches for RunCommands
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for RunCommands
impl Subcommand for RunCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand