{"modulePath":"github.com/DaAlbrecht/cf-cli","version":"v0.0.0-20231128151943-1fe19bb400b9","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(config *configv3.Config) (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\tCommandName string\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (e UnknownCommandError) Error() string\n```\n\n```go\nfunc (e *UnknownCommandError) Suggest(pluginCommandNames []string)\n```\n\n","path":"github.com/DaAlbrecht/cf-cli/util/command_parser","name":"command_parser","synopsis":"","isRedistributable":true}
