Documentation ¶
Index ¶
- func ExitOnErrorWithMessage(exitcode ExitCode.Enum, msg string) error
- func ExitOnInvalidArgument(msg string) error
- func ExitOnInvalidOption(msg string) error
- func ExitOnNotFound(msg string) error
- func ExitOnRPC(msg string) error
- func ExtractRetCode(err error) (string, int, error)
- func FailureResponse(err error) error
- func ParseParameter(request string) (map[string]*Token, error)
- func SuccessResponse(result interface{}) error
- func UserConfirmed(msg string) bool
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitOnErrorWithMessage ¶
ExitOnErrorWithMessage informs cli to exit with message and error code
func ExtractRetCode ¶
ExtractRetCode extracts info from the error
func ParseParameter ¶
ParseParameter transforms a string to a list of tokens
Types ¶
type Token ¶
type Token struct {
// contains filtered or unexported fields
}
Token describes a token (<keyword> <operator> <value>)
func (*Token) GetKeyword ¶
GetKeyword returns the keyword member of the token (pos == 0)
func (*Token) GetOperator ¶
GetOperator returns the operator member of the token (pos == 1)
Click to show internal directories.
Click to hide internal directories.