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.
- Native
Debug Lookup Options - Shared exact native debug-artifact lookup scope.
- Native
Debug Upload Options - Apple native debug-artifact upload options.
- Project
Create Options - Fields accepted by secure project creation.
- Project
Setup Seen Options - Optional metadata for backend-owned project setup tracking.
- Read
Options - Filters for historical read commands.
- Support
Context Reply Options - Fields accepted when replying with requested support context.
- Support
Ticket Create Options - Fields accepted when creating a support ticket.
- Support
Ticket List Options - Filters for support-ticket history.
- Watch
Options - Client-side filters for live watch commands.
Enums§
- CliError
- CLI parsing error.
- Command
- Parsed
LogBrewcommand. - Explain
Target - Context target for
explain. - Help
Topic - Help topic for CLI usage output.
- Http
Method - HTTP method used by a CLI command.
- Login
Provider - OAuth provider used for native CLI browser login.
- Native
Debug Artifacts Target - Apple native debug-artifact operation.
- Read
Target - Historical data target for
read. - Runtime
Error - Runtime error for command execution.
- SetTarget
- Mutation target for
set. - Support
Target - Support-ticket operation.
- Support
Ticket Lifecycle Status - User-owned support-ticket lifecycle status.
- Watch
Target - 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_
native_ debug_ runtime_ error - Writes one body-free native debug-artifact JSON error for agents.
- write_
runtime_ error - Writes a runtime error for humans or agents.