pub enum Command {
Show 28 variants
Init {
space: String,
},
Ingest {
path: PathBuf,
space: String,
},
Sync {
path: PathBuf,
space: String,
},
Stats,
Spaces,
Doctor,
Backup {
no_projection: bool,
no_cache: bool,
out: Option<PathBuf>,
},
Restore {
backup: PathBuf,
},
Ask {
question: String,
space: String,
},
Entity {
command: EntityCmd,
},
Timeline {
entity_id: String,
space: String,
},
Why {
statement_id: String,
space: String,
dropped: bool,
min_confidence: f32,
},
Contradictions {
space: String,
},
Page {
entity: Option<String>,
space: String,
kind: String,
topic: Option<String>,
},
Reproject,
Redact {
target: String,
space: String,
dry_run: bool,
reason: String,
},
Export {
out: Option<PathBuf>,
},
Import {
file: PathBuf,
},
ImportOxios {
db: PathBuf,
space: String,
},
Token {
command: TokenCmd,
},
Serve {
socket: Option<PathBuf>,
http: Option<String>,
require_token: bool,
daemon: bool,
ui_dir: Option<PathBuf>,
},
Predicate {
command: PredicateCmd,
},
Extract {
episode_id: String,
space: String,
},
Reextract {
space: String,
},
Model {
command: ModelCmd,
},
Eval {
suite: String,
},
Declare {
json: String,
space: String,
},
Source {
command: SourceCmd,
},
}Variants§
Init
Initialize a new brain store.
Ingest
Ingest a file or stdin as an episode.
Sync
Sync a directory of markdown notes into a space. Idempotent: unchanged files are skipped; new and modified files are ingested with occurred_at = file mtime.
Stats
Show store statistics.
Spaces
List all spaces with counts. Read-only; safe with a running daemon.
Doctor
Health check.
Backup
Back up the store.
Fields
Restore
Restore from a backup.
Ask
Ask a question (hybrid query).
Entity
Entity management (DESIGN §12.4: entity show|merge|split|alias).
Timeline
Why
Provenance for a statement.
Fields
Contradictions
List contradicted statements.
Page
Render a page (brief) with followable links. --kind entity is the
default; --kind space shows counts + top entities; --kind topic
keyword-searches entity surfaces (--topic is the keyword).
Fields
Reproject
Reproject the store.
Redact
Redact (the only true delete).
Export
Export to JSONL.
Import
Import from JSONL.
ImportOxios
Import from an oxios-memory SQLite database (DESIGN §16.3).
Fields
Token
Token management (DESIGN §12.4: token issue|list|revoke).
Serve
Fields
Predicate
Predicate registry (DESIGN §12.4: predicate add|list).
Fields
command: PredicateCmdExtract
Extract a single episode (calls the LLM, validates, projects).
Reextract
Re-extract all primary episodes with the configured extractor.
Model
Model artifact management (§8.4: model list|pull|verify|use).
Eval
Run the extraction evaluation suite (DESIGN §14.2).
Declare
Declare a statement from raw JSON (power-user path).
Source
Source management.
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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