pub enum Commands {
Show 19 variants
Task(TaskCommands),
Current {
set: Option<i64>,
command: Option<CurrentAction>,
},
Report {
since: Option<String>,
status: Option<String>,
filter_name: Option<String>,
filter_spec: Option<String>,
format: String,
summary_only: bool,
},
Event(EventCommands),
Search {
query: String,
tasks: bool,
events: bool,
limit: Option<i64>,
},
Doctor,
McpServer,
SessionRestore {
include_events: usize,
workspace: Option<String>,
},
Dashboard(DashboardCommands),
Setup {
target: Option<String>,
scope: String,
dry_run: bool,
force: bool,
diagnose: bool,
config_path: Option<String>,
project_dir: Option<String>,
},
Add {
name: String,
spec: Option<String>,
parent: Option<i64>,
priority: Option<String>,
},
Start {
id: i64,
with_events: bool,
},
Done,
Switch {
id: i64,
with_events: bool,
},
Log {
event_type: String,
data: String,
task_id: Option<i64>,
},
Next {
format: String,
},
List {
status: Option<String>,
parent: Option<String>,
},
Context {
task_id: Option<i64>,
},
Get {
id: i64,
with_events: bool,
},
}Variants§
Task(TaskCommands)
Task management commands
Current
Workspace state management
Fields
command: Option<CurrentAction>Report
Generate analysis and reports
Fields
Event(EventCommands)
Event logging commands
Search
Unified search across tasks and events
Fields
Doctor
Check system health and dependencies
McpServer
Start MCP server for AI assistants (JSON-RPC stdio)
SessionRestore
Restore session context for AI agents (Focus Restoration - Phase 1)
This command returns all context needed to restore work continuity:
- Current focused task
- Parent task and siblings progress
- Child tasks status
- Recent events (decisions, blockers, notes)
- Suggested next commands
Designed for SessionStart hooks to inject context at the beginning of new sessions.
Fields
Dashboard(DashboardCommands)
Dashboard management commands
Setup
Unified setup command for AI tool integrations
This command provides a unified interface for setting up intent-engine integration with various AI assistant tools. It handles both hook installation and MCP server configuration in one step.
Features:
- User-level or project-level installation
- Atomic setup with rollback on failure
- Built-in connectivity testing
- Diagnosis mode for troubleshooting
Fields
Add
Add a new task (alias for ‘task add’)
Fields
Start
Start a task and set focus (alias for ‘task start’)
Done
Complete the current focused task (alias for ‘task done’)
Switch
Switch to a different task (alias for ‘task switch’)
Log
Record an event for current task (alias for ‘event add’)
Fields
Next
Get the next recommended task (alias for ‘task pick-next’)
List
List tasks with filters (alias for ‘task list’)
Examples: ie ls # List all tasks ie ls todo # List todo tasks ie ls doing # List doing tasks ie ls done # List done tasks
Fields
Context
Get task context (alias for ‘task context’)
Get
Get task details (alias for ‘task get’)
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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 Commands
impl Subcommand for Commands
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 subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more