Skip to main content

Crate obsidianlog_cli

Crate obsidianlog_cli 

Source
Expand description

ObsidianLog CLI library.

Hosts the command-line surface (init, serve, query, verify), config loading, and the OS-keychain key store, wiring them to the obsidianlog_store and obsidianlog_ingest crates. The binary in src/main.rs is a thin shell over run.

§Status

The argument surface is complete and dispatches to each command; init, serve, query, and verify are all implemented.

Re-exports§

pub use cli::Cli;
pub use cli::Command;
pub use config::Config;

Modules§

backend
Runtime backend resolution: build the AnyBackend a command should archive/query/verify against, based on config.indexd — LocalBackend when unset, the Sia backend (with the sia feature) when set.
cli
Command-line interface definition.
commands
Command handlers backing each CLI subcommand.
config
Configuration model and loading.
keystore
Local credential storage (ADR-0015): the archive’s AES-256 encryption key, and — when the Sia backend is configured — the indexd application key, stored together as one CredentialBundle.

Functions§

run
Dispatch a parsed Cli invocation to the matching command handler.