pub enum PlanCommand {
Goal(String),
Status(Option<String>),
List,
Cancel(Option<String>),
Confirm,
Resume(Option<String>),
Retry(Option<String>),
}Expand description
Typed representation of a parsed /plan CLI command.
§Parsing ambiguity
Goals that begin with a reserved word (status, list, cancel, confirm, resume, retry)
will be interpreted as that subcommand, not as a goal. For example:
/plan status report parses as Status(Some("report")).
To work around this, rephrase the goal: /plan write a status report.
Variants§
Goal(String)
/plan <goal> — decompose goal, confirm, execute, aggregate.
Status(Option<String>)
/plan status or /plan status <graph-id> — show DAG progress.
List
/plan list — list recent graphs from persistence.
Cancel(Option<String>)
/plan cancel or /plan cancel <graph-id> — cancel active/specific graph.
Confirm
/plan confirm — confirm pending plan before execution.
Resume(Option<String>)
/plan resume or /plan resume <graph-id> — resume a paused graph (Ask strategy).
Retry(Option<String>)
/plan retry or /plan retry <graph-id> — re-run failed tasks in a graph.
Implementations§
Source§impl PlanCommand
impl PlanCommand
Sourcepub fn parse(input: &str) -> Result<Self, OrchestrationError>
pub fn parse(input: &str) -> Result<Self, OrchestrationError>
Parse from raw input text starting with /plan.
§Errors
Returns OrchestrationError::InvalidCommand if parsing fails.
Trait Implementations§
Source§impl Debug for PlanCommand
impl Debug for PlanCommand
Source§impl PartialEq for PlanCommand
impl PartialEq for PlanCommand
impl StructuralPartialEq for PlanCommand
Auto Trait Implementations§
impl Freeze for PlanCommand
impl RefUnwindSafe for PlanCommand
impl Send for PlanCommand
impl Sync for PlanCommand
impl Unpin for PlanCommand
impl UnsafeUnpin for PlanCommand
impl UnwindSafe for PlanCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request