Documentation
¶
Overview ¶
Package client is the plymouth command line: each subcommand and option becomes requests to the daemon, and the daemon's responses become the exit status and output plymouth's client gives, so scripts that call plymouth keep working.
Index ¶
Constants ¶
const ( ExitOK = 0 // ExitFailed is a refused request, an unanswered prompt or bad usage. ExitFailed = 1 // ExitDisconnected is the daemon hanging up mid-request, as plymouth // reports it. ExitDisconnected = 2 // ExitNoDaemon is no daemon listening. ExitNoDaemon = 3 )
The exit statuses.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
Socket string
Stdout io.Writer
Stderr io.Writer
// Command runs a --command with the answer on its standard input, or
// none when input is nil, and returns its exit status.
Command func(argv []string, input []byte) (int, error)
}
Client runs plymouth commands against the daemon at Socket.