#[non_exhaustive]pub enum Command {
Show 14 variants
#[non_exhaustive] List(ListArgs),
#[non_exhaustive] Init(Option<String>, Option<String>),
#[non_exhaustive] InitAll,
#[non_exhaustive] Deinit(bool),
#[non_exhaustive] Hook(HookEvent),
#[non_exhaustive] Status,
#[non_exhaustive] Report(ReportArgs),
#[non_exhaustive] Entries(EntryArgs),
#[non_exhaustive] Path,
#[non_exhaustive] Update,
#[non_exhaustive] Completions(Shell),
#[non_exhaustive] Complete(Candidates),
#[non_exhaustive] Version,
#[non_exhaustive] Help,
}Expand description
What to do, as chosen on the command line.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
#[non_exhaustive]List(ListArgs)
list: print tasks as markdown.
#[non_exhaustive]Init(Option<String>, Option<String>)
init [NAME] [--repo REPO]: make the current directory a project, named NAME or after the folder,
and the repository REPO in it.
#[non_exhaustive]InitAll
init --all: bring every registered repository’s agent instructions up to this version’s.
#[non_exhaustive]Deinit(bool)
deinit [--purge]: undo init for the current directory’s project, or the one --project names;
true also deletes its .brain/.
#[non_exhaustive]Hook(HookEvent)
hook prompt|stop|edit|tool: what Claude Code’s hooks run (see [hook]).
#[non_exhaustive]Status
status: print the running tasks for status bars.
#[non_exhaustive]Report(ReportArgs)
report: print a time report as markdown.
#[non_exhaustive]Entries(EntryArgs)
add, show, search, start, comment, …: entries by id, for agents and scripts.
#[non_exhaustive]Path
path: print the data folder.
#[non_exhaustive]Update
update: install the latest release.
#[non_exhaustive]Completions(Shell)
completions SHELL: print a tab completion script.
#[non_exhaustive]Complete(Candidates)
complete ids|projects|tags …: what the completion scripts offer, one per line. The words after
it are the command line being completed, ignored but for its --project.
#[non_exhaustive]Version
--version / -V.
#[non_exhaustive]Help
--help / -h.
Implementations§
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.