Skip to main content

Module cli

Module cli 

Source
Expand description

CLI infrastructure and command implementations. CLI infrastructure for the x0x command-line tool.

Provides DaemonClient for communicating with a running x0xd daemon, output formatting, and all command implementations.

Modules§

commands
Command implementations for the x0x CLI.

Structs§

DaemonClient
HTTP client for talking to a running x0xd daemon.

Enums§

OutputFormat
Output format for CLI responses.

Functions§

print_error
Print an error message to stderr.
print_value
Print a JSON value according to the output format.