Expand description
kindling CLI commands.
Defines the clap command tree (Cli) and handlers for the 12 CLI verbs.
The default execution mode is in-process via kindling_service; the
global --via-daemon flag switches the daemon-backed verbs (log, capsule
open/close, search, pin, unpin, forget) to route through kindling_client
for safe concurrent use alongside other kindling tools.
export/import/status/list/init are always in-process (they operate
on the DB file directly or have no daemon endpoint). serve starts the UDS
daemon via kindling_server::serve.
This library backs the single kindling binary (src/main.rs); the hook
surface is folded in as hook. The CLI dispatch is exposed via
cli_main so it stays integration-testable.
Modules§
- hook
- Claude Code hook handlers (Rust).
Structs§
- Browse
Args - Capsule
Close Args - Capsule
Open Args - Cli
- Local memory and continuity engine for AI-assisted development.
- Common
Opts - Shared
--db/--jsonflags carried by most verbs. - Demo
Args - Export
Args - Forget
Args - Import
Args - Init
Args - List
Args - LogArgs
- PinArgs
- Search
Args - Serve
Args - Spool
Status Args - Status
Args - Unpin
Args
Enums§
- Capsule
Command - CliError
- CLI-level errors. Most variants wrap a lower-layer error; the CLI surface converts these to a printed message + non-zero exit code.
- Command
- Spool
Command
Functions§
- cli_
main - Parse args from the process and execute, returning the desired exit code.
- open_
service - Open an in-process service at the resolved DB path, creating the parent directory if needed.
- resolve_
db_ path - Resolve the database path for an in-process command.
- run
- Execute a parsed
Cli, printing output and returning an exit code.
Type Aliases§
- CliResult
- A CLI result. The
Okpayload is the process exit code (0 = success).