{"modulePath":"github.com/morpheus-compiler/polycube","version":"v0.0.0-20201211120832-db2ce0f4c9a4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cliargs\n\n## Constants\n\n```go\nconst (\n\tShowTypeUnspec  = iota\n\tShowTypeNormal  = iota\n\tShowTypeBrief   = iota\n\tShowTypeVerbose = iota\n\tShowTypeJson    = iota\n\tShowTypeYaml    = iota\n)\n```\n\n```go\nconst (\n\tAddCommand  = \"add\"\n\tShowCommand = \"show\"\n\tDelCommand  = \"del\"\n\tSetCommand  = \"set\"\n\n\tShowNormal  = \"-normal\"\n\tShowBrief   = \"-brief\"\n\tShowVerbose = \"-verbose\"\n\tShowJson    = \"-json\"\n\tShowYaml    = \"-yaml\"\n)\n```\n\n## Types\n\n```go\ntype CLIArgs struct {\n\tCommand  string\n\tPathArgs []string\n\tBodyArgs map[string]string\n\n\t// kind of output the user requested (NORMAL, BRIEF, VERBOSE, YAML, JSON)\n\tShowType int\n\n\t// if set, the command is an help command\n\tIsHelp bool\n\n\t// parameters to ignore while printing\n\tHideList map[string]bool\n}\n```\n\n```go\nfunc ParseCLIArgs(args []string) (*CLIArgs, error)\n```\n\n```go\nfunc (a0 *CLIArgs) Equals(a1 *CLIArgs) bool\n```\n\n```go\nfunc (cli *CLIArgs) GetHTTPRequest() (*httprequest.HTTPRequest, error)\n```\nCreates an HTTP request based on the CLIArgs\n\n","path":"github.com/morpheus-compiler/polycube/src/polycubectl/cliargs","name":"cliargs","synopsis":"","isRedistributable":true}
