Documentation
¶
Overview ¶
Package cmd implements the gohai CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
Execute runs the gohai CLI with args, the words after the binary's name, and returns the exit code: 0, or 1 after it prints the error to errOut. main.go gives it the process's arguments and streams, and a ctx that a signal cancels.
func NewCollectorCommand ¶ added in v1.13.0
NewCollectorCommand is gohai collector: list, get, spec get and validate, with path the command path that it is mounted at, such as gohai collector, which its examples and its hints name. the commands that describe and check the collectors, as osapi's DSLs describe and check themselves. It is exported so that a program that embeds gohai, such as osapi, mounts the same commands (osapi agent collector), and the two print the same thing.
Types ¶
This section is empty.