{"modulePath":"code.cloudfoundry.org/cli-sapi","version":"v6.51.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package command_parser\n\n## Variables\n\n```go\nvar ErrFailed = errors.New(\"command failed\")\n```\n\n```go\nvar ParseErr = errors.New(\"incorrect type for arg\")\n```\n\n## Types\n\n```go\ntype CommandParser struct {\n\tConfig *configv3.Config\n\tUI     *ui.UI\n}\n```\n\n```go\nfunc NewCommandParser() (CommandParser, error)\n```\n\n```go\nfunc (p *CommandParser) ParseCommandFromArgs(ui *ui.UI, args []string) (int, error)\n```\n\n```go\ntype DisplayUsage interface {\n\tDisplayUsage()\n}\n```\n\n```go\ntype TriggerLegacyMain interface {\n\tLegacyMain()\n\terror\n}\n```\n\n```go\ntype UI interface {\n\tDisplayError(err error)\n\tDisplayWarning(template string, templateValues ...map[string]interface{})\n\tDisplayText(template string, templateValues ...map[string]interface{})\n\tFlushDeferred()\n}\n```\n\n```go\ntype UnknownCommandError struct {\n}\n```\n\n```go\nfunc (e UnknownCommandError) Error() string\n```\n\n","path":"code.cloudfoundry.org/cli-sapi/util/command_parser","name":"command_parser","synopsis":"","isRedistributable":true}
