pub enum Commands {
Task(TaskCommands),
Current {
set: Option<i64>,
},
Report {
since: Option<String>,
status: Option<String>,
filter_name: Option<String>,
filter_spec: Option<String>,
format: String,
summary_only: bool,
},
Event(EventCommands),
Doctor,
McpServer,
SessionRestore {
include_events: usize,
workspace: Option<String>,
},
SetupClaudeCode {
dry_run: bool,
claude_dir: Option<String>,
force: bool,
},
SetupMcp {
dry_run: bool,
config_path: Option<String>,
project_dir: Option<String>,
force: bool,
target: String,
},
}Variants§
Task(TaskCommands)
Task management commands
Current
Workspace state management
Report
Generate analysis and reports
Fields
Event(EventCommands)
Event logging commands
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
SetupClaudeCode
Setup Claude Code integration (install SessionStart hook)
Automatically configures .claude/hooks/session-start.sh to enable focus restoration on every new Claude Code session.
Fields
SetupMcp
Setup MCP server configuration for Claude Code/Desktop
Automatically configures ~/.claude.json (or OS-specific equivalent) to add intent-engine as an MCP server. This allows Claude Code/Desktop to use intent-engine tools for task management.
Run this after ‘cargo install intent-engine’ to complete the setup.
Fields
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> 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