Skip to main content

Module cli

Module cli 

Source
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§

down
logs
restart
run
session_cmd
status
stop
up
wait

Functions§

connect
enable_proxy
Send an EnableProxy request to the daemon. Returns Some(exit_code) on error, None on success.
request
stream_responses
Send a request and read streaming responses until LogEnd or error. Calls on_line for each LogLine received. Returns the terminal response.