Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoStop ¶
DoStop is the testable core of the stop command. pidFile is injected for hermetic testing.
func NewRestartCommand ¶
NewRestartCommand returns the "restart" cobra command.
func NewServerCommand ¶
NewServerCommand returns the "server" cobra command.
func NewStatusCommand ¶
func NewStatusCommand(exitCode ExitCodeFunc) *cobra.Command
NewStatusCommand returns the "status" cobra command. exitCode is invoked to signal a non-zero process exit when the daemon is not running.
func NewStopCommand ¶
NewStopCommand returns the "stop" cobra command.
Types ¶
type ExitCodeFunc ¶
ExitCodeFunc is a function that converts an integer exit code into an error value that the CLI runner recognises and converts to os.Exit(code).