Skip to main content

Module cli

Module cli 

Source
Expand description

CLI command tree for the openlatch binary.

This module defines the full clap command structure, global flags, noun-verb aliasing, and the helper for resolving output configuration from parsed CLI args.

§Command grammar

Primary verbs: init, status, start, stop, restart, logs, doctor, uninstall, docs

Noun-verb aliases: hooks installinit, hooks uninstalluninstall, daemon startstart, daemon stopstop, daemon restartrestart

Modules§

color
Terminal color and TTY detection for the CLI.
commands
output
Output formatting infrastructure for the openlatch CLI.

Structs§

Cli
The top-level CLI struct parsed by clap.
InitArgs
Arguments for the init subcommand.
LogsArgs
Arguments for the logs subcommand.
StartArgs
Arguments for the start subcommand.
UninstallArgs
Arguments for the uninstall subcommand.

Enums§

Commands
Top-level subcommands.
DaemonCommands
Subcommands under openlatch daemon.
HooksCommands
Subcommands under openlatch hooks.
OutputFormat
Output format selection.

Functions§

build_output_config
Resolve the parsed CLI flags into a single OutputConfig.
suggest_subcommand
Suggest the closest known subcommand for an unknown input string.