pub enum Commands {
Show 22 variants
Setup {
force: bool,
dry_run: bool,
skip_skills: bool,
skip_hooks: bool,
skip_claude_md: bool,
},
Init {
no_sync: bool,
no_hooks: bool,
},
Read {
path: String,
anchor: Option<String>,
lines: Option<String>,
},
Annotate {
commit: String,
live: bool,
squash_sources: Option<String>,
amend_source: Option<String>,
summary: Option<String>,
json_input: Option<String>,
auto: bool,
},
Flag {
path: String,
anchor: Option<String>,
reason: String,
},
Correct {
sha: String,
region: String,
field: String,
remove: Option<String>,
amend: Option<String>,
},
Sync {
action: SyncAction,
},
Export {
output: Option<String>,
},
Import {
file: String,
force: bool,
dry_run: bool,
},
Doctor {
json: bool,
staleness: bool,
},
Deps {
path: String,
anchor: Option<String>,
format: String,
max_results: u32,
scan_limit: u32,
compact: bool,
},
History {
path: String,
anchor: Option<String>,
limit: u32,
format: String,
compact: bool,
},
Show {
path: String,
anchor: Option<String>,
commit: String,
no_tui: bool,
},
Schema {
name: String,
},
Contracts {
path: String,
anchor: Option<String>,
format: String,
compact: bool,
},
Decisions {
path: Option<String>,
format: String,
compact: bool,
},
Summary {
path: String,
anchor: Option<String>,
format: String,
compact: bool,
},
Lookup {
path: String,
anchor: Option<String>,
format: String,
compact: bool,
},
Status {
format: String,
},
Note {
text: Option<String>,
list: bool,
clear: bool,
},
Web {
port: u16,
open: bool,
},
Knowledge {
action: KnowledgeAction,
},
}Variants§
Setup
One-time machine-wide setup (provider, skills, hooks, CLAUDE.md)
Fields
Init
Initialize chronicle in the current repository
Fields
Read
Read annotations for a file
Fields
Annotate
Annotate a specific commit
Fields
Flag
Flag a region annotation as potentially inaccurate
Fields
Correct
Apply a precise correction to a specific annotation field
Fields
Sync
Manage notes sync with remotes
Fields
action: SyncActionExport
Export annotations as JSONL
Import
Import annotations from a JSONL file
Fields
Doctor
Run diagnostic checks on the chronicle setup
Fields
Deps
Find code that depends on a given file/anchor (dependency inversion)
Fields
History
Show annotation timeline for a file/anchor across commits
Fields
Show
Interactive TUI explorer for annotated source code
Fields
Schema
Print JSON Schema for annotation types (self-documenting for AI agents)
Contracts
Query contracts and dependencies for a file/anchor (“What must I not break?”)
Fields
Decisions
Query design decisions and rejected alternatives (“What was decided?”)
Fields
Summary
Show condensed annotation summary for a file
Fields
Lookup
One-stop context lookup for a file (contracts + decisions + history)
Fields
Status
Show annotation status and coverage for the repository
Note
Stage a note for the next annotation (captured context during work)
Fields
Web
Launch web viewer for browsing annotations
Knowledge
Manage repo-level knowledge (conventions, boundaries, anti-patterns)
Fields
action: KnowledgeActionTrait 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