Skip to main content

Crate logbrew_cli

Crate logbrew_cli 

Source
Expand description

Native LogBrew command-line interface library.

The CLI is intentionally small and predictable so coding agents can learn it quickly: read, watch, explain, and set cover data access and state changes, while login, setup, and status cover local configuration.

Modules§

help
CLI help text kept separate from command parsing.

Structs§

CliEnvironment
Process environment needed by the CLI.
ReadOptions
Filters for historical read commands.

Enums§

CliError
CLI parsing error.
Command
Parsed LogBrew command.
ExplainTarget
Context target for explain.
HelpTopic
Help topic for CLI usage output.
HttpMethod
HTTP method used by a CLI command.
ReadTarget
Historical data target for read.
RuntimeError
Runtime error for command execution.
SetTarget
Mutation target for set.
WatchTarget
Live stream target for watch.

Functions§

execute_command
Executes a parsed command.
parse_command
Errors
write_cli_error
Writes a command-line parsing error for humans or agents.
write_runtime_error
Writes a runtime error for humans or agents.