package
5.21.5+incompatible
Repository: https://github.com/sensu/sensu-go.git
Documentation: pkg.go.dev
# Functions
NewCLI returns a SensuCLI instace with mocked values with json format.
NewFileCapture instantiates new FileCapture.
NewMockCLI return SensuCLI instance w/ mocked values.
RunCmd runs your SensuCLI command and returns any output and errors the command might have returned.
SimpleSensuCLI return SensuCLI instance w/ given client & live config.
# Structs
FileCapture helps us write tests where we want to assert that something was written to STDOUT or STDERR.