{"modulePath":"github.com/CS-SI/SafeScale/v21","version":"v21.11.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cli\n\n## Functions\n\n```go\nfunc ExitOnErrorWithMessage(exitcode exitcode.Enum, msg string) error\n```\nExitOnErrorWithMessage informs cli to exit with message and error code\n\n```go\nfunc ExitOnInvalidArgument(msg string) error\n```\nExitOnInvalidArgument ...\n\n```go\nfunc ExitOnInvalidOption(msg string) error\n```\nExitOnInvalidOption ...\n\n```go\nfunc ExitOnNotFound(msg string) error\n```\nExitOnNotFound ...\n\n```go\nfunc ExitOnRPC(msg string) error\n```\nExitOnRPC ...\n\n```go\nfunc FailureResponse(err error) error\n```\nFailureResponse ...\n\n```go\nfunc SuccessResponse(result interface{}) error\n```\nSuccessResponse ...\n\n```go\nfunc UserConfirmed(msg string) bool\n```\nUserConfirmed asks user to confirm\n\n## Types\n\n```go\ntype PipeBridge interface {\n\tPrinter\n\tReader() io.ReadCloser\n}\n```\nPipeBridge ...\n\n```go\ntype PipeBridgeController struct {\n\t// contains filtered or unexported fields\n}\n```\nPipeBridgeController is the controller of the bridges of pipe\n\n```go\nfunc NewPipeBridgeController(bridges ...PipeBridge) (*PipeBridgeController, fail.Error)\n```\nNewPipeBridgeController creates a new controller of bridges of pipe\n\n```go\nfunc (pbc *PipeBridgeController) Start(task concurrency.Task) fail.Error\n```\nStart initiates the capture of pipe outputs and the display of what is captured\n\n```go\nfunc (pbc *PipeBridgeController) Stop() fail.Error\n```\nStop the captures and the display.\n\n```go\nfunc (pbc *PipeBridgeController) Wait() fail.Error\n```\nWait waits the end of the goroutines\n\n```go\ntype Printer interface {\n\tPrint(interface{})\n}\n```\nPrinter ...\n\n```go\ntype StderrBridge struct {\n\t// contains filtered or unexported fields\n}\n```\nStderrBridge is a OutputPipe outputting on stderr\n\n```go\nfunc NewStderrBridge(pipe io.ReadCloser) (*StderrBridge, fail.Error)\n```\nNewStderrBridge creates a pipe displaying on stderr\n\n```go\nfunc (errp *StderrBridge) Print(data interface{})\n```\nPrint outputs the string to stderr\n\n```go\nfunc (cb StderrBridge) Reader() io.ReadCloser\n```\n\n```go\ntype StdoutBridge struct {\n\t// contains filtered or unexported fields\n}\n```\nStdoutBridge is a PipeBridge outputting on stdout\n\n```go\nfunc NewStdoutBridge(pipe io.ReadCloser) (*StdoutBridge, fail.Error)\n```\nNewStdoutBridge creates an PipeBridge from a bufio.ReadCloser\n\n```go\nfunc (outp *StdoutBridge) Print(data interface{})\n```\nPrint outputs the string to stdout\n\n```go\nfunc (cb StdoutBridge) Reader() io.ReadCloser\n```\n\n","path":"github.com/CS-SI/SafeScale/v21/lib/utils/cli","name":"cli","synopsis":"","isRedistributable":true}
