Expand description
CLI client: connecting to the daemon and sending requests.
Each subcommand module (run, stop, status, …) builds a
Request, sends it via request, and
interprets the Response.
connect handles auto-spawning the daemon on first use.
stream_responses supports streaming commands like logs --follow.
Modules§
Functions§
- connect
- enable_
proxy - Send an
EnableProxyrequest to the daemon. ReturnsSome(exit_code)on error, None on success. - request
- stream_
responses - Send a request and read streaming responses until
LogEndor error. Callson_linefor eachLogLinereceived. Returns the terminal response.