Skip to main content

Crate kindling

Crate kindling 

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

BrowseArgs
CapsuleCloseArgs
CapsuleOpenArgs
Cli
Local memory and continuity engine for AI-assisted development.
CommonOpts
Shared --db / --json flags carried by most verbs.
DemoArgs
ExportArgs
ForgetArgs
ImportArgs
InitArgs
ListArgs
LogArgs
PinArgs
SearchArgs
ServeArgs
SpoolStatusArgs
StatusArgs
UnpinArgs

Enums§

CapsuleCommand
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
SpoolCommand

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 Ok payload is the process exit code (0 = success).