Skip to main content

Cli

Struct Cli 

Source
pub struct Cli {
Show 51 fields pub cheet: bool, pub version: bool, pub completions: Option<Shell>, pub man: bool, pub update: bool, pub no_update_check: bool, pub spicy: bool, pub terminal: bool, pub dashboard: bool, pub open_browser: bool, pub allow: Vec<String>, pub http_daemon: bool, pub mcp: bool, pub mcp_install: bool, pub mcp_uninstall: bool, pub mcp_status: bool, pub log_level: Option<LogLevel>, pub daemon_start: bool, pub daemon_stop: bool, pub daemon_status: bool, pub daemon_context: bool, pub daemon_projects: bool, pub daemon_credits: bool, pub daemon_install: bool, pub agent_save: bool, pub agent_restore: bool, pub agent_context: bool, pub agent_kickstart: bool, pub agent_dump: bool, pub memory_anchor: Option<Vec<String>>, pub memory_find: Option<String>, pub memory_stats: bool, pub update_consciousness: Option<String>, pub security_scan: Option<String>, pub guardian_scan: Option<String>, pub guardian_daemon: bool, pub cleanup: bool, pub hooks_install: bool, pub hooks_config: Option<String>, pub mega_start: Option<String>, pub mega_save: bool, pub mega_list: bool, pub mega_stats: bool, pub token_stats: Option<String>, pub get_frequency: Option<String>, pub log: Option<Option<String>>, pub tips: Option<String>, pub cmd: Option<Cmd>, pub path: Option<String>, pub input: Option<String>, pub scan_opts: ScanArgs,
}
Expand description

Smart Tree CLI - intelligent directory visualization

Fields§

§cheet: bool

Show the cheatsheet - quick reference for all commands

§version: bool

Show version information and check for updates

§completions: Option<Shell>

Generate shell completion scripts (bash, zsh, fish, powershell)

§man: bool

Generate the man page

§update: bool

Check for updates and install the latest version

§no_update_check: bool

Skip the automatic update check on startup

§spicy: bool

Launch Spicy TUI - interactive file browser with fuzzy search!

§terminal: bool

Launch Smart Tree Terminal Interface (STTI)

§dashboard: bool

Launch web dashboard (browser-based terminal + file browser)

§open_browser: bool

Open browser automatically when starting dashboard

§allow: Vec<String>

Network CIDR allow-list for dashboard (e.g., 192.168.1.0/24)

§http_daemon: bool

Start HTTP daemon (MCP over HTTP, LLM proxy, The Custodian)

§mcp: bool

Run as MCP server for AI assistants (auto-starts daemon)

§mcp_install: bool

Install Smart Tree as MCP server in Claude Desktop

§mcp_uninstall: bool

Uninstall Smart Tree MCP server from Claude Desktop

§mcp_status: bool

Check MCP installation status in Claude Desktop

§log_level: Option<LogLevel>

Set the log level

§daemon_start: bool

Start the Smart Tree daemon

§daemon_stop: bool

Stop the Smart Tree daemon

§daemon_status: bool

Show Smart Tree daemon status

§daemon_context: bool

Get context from the daemon

§daemon_projects: bool

List projects tracked by the daemon

§daemon_credits: bool

Show Foken credits from daemon

§daemon_install: bool

[DEPRECATED: use st service install] Install daemon as a system service

§agent_save: bool

Save agent consciousness state to .aye_consciousness.m8

§agent_restore: bool

Restore agent consciousness from .aye_consciousness.m8

§agent_context: bool

Show agent consciousness status and summary

§agent_kickstart: bool

Ultra-compressed consciousness restoration format

§agent_dump: bool

Dump raw consciousness file content for debugging

§memory_anchor: Option<Vec<String>>

Anchor a memory: –memory-anchor Types: insight, decision, pattern, gotcha, todo

§memory_find: Option<String>

Find memories by keywords (comma-separated)

§memory_stats: bool

Show memory statistics

§update_consciousness: Option<String>

Update .m8 consciousness files for a directory

§security_scan: Option<String>

Scan codebase for supply chain attack patterns (default: current dir)

§guardian_scan: Option<String>

Scan a file for prompt injection patterns

§guardian_daemon: bool

Run Guardian daemon for system-wide AI protection

§cleanup: bool

Security cleanup - detect and remove malicious MCP entries

§hooks_install: bool

Install Smart Tree hooks to AI Agent settings

§hooks_config: Option<String>

Manage hooks: enable, disable, status

§mega_start: Option<String>

Start a mega session (persistent cross-context conversation)

§mega_save: bool

Save current mega session snapshot

§mega_list: bool

List all mega sessions

§mega_stats: bool

Show mega session statistics

§token_stats: Option<String>

Show tokenization statistics for a path

§get_frequency: Option<String>

Get wave frequency for a directory

§log: Option<Option<String>>

Enable activity logging to JSONL file

§tips: Option<String>

Control smart tips (on/off)

§cmd: Option<Cmd>§path: Option<String>

Path to analyze (directory, file, URL, or stream)

§input: Option<String>

Specify input type explicitly (filesystem, qcp, sse, openapi, mem8)

§scan_opts: ScanArgs

Trait Implementations§

Source§

impl Args for Cli

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

impl CommandFactory for Cli

Source§

fn command<'b>() -> Command

Build a Command that can instantiate Self. Read more
Source§

fn command_for_update<'b>() -> Command

Build a Command that can update self. Read more
Source§

impl Debug for Cli

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Cli

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Parser for Cli

Source§

fn parse() -> Self

Parse from std::env::args_os(), exit on error.
Source§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
Source§

fn parse_from<I, T>(itr: I) -> Self
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, exit on error.
Source§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
Source§

fn update_from<I, T>(&mut self, itr: I)
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, exit on error. Read more
Source§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for Cli

§

impl RefUnwindSafe for Cli

§

impl Send for Cli

§

impl Sync for Cli

§

impl Unpin for Cli

§

impl UnsafeUnpin for Cli

§

impl UnwindSafe for Cli

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,