{"modulePath":"github.com/day2devops/moby","version":"v0.0.0-20211209213653-8955d8da8951","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cli\n\n## Functions\n\n```go\nfunc FlagErrorFunc(cmd *cobra.Command, err error) error\n```\nFlagErrorFunc prints an error message which matches the format of the docker/docker/cli error messages\n\n```go\nfunc NoArgs(cmd *cobra.Command, args []string) error\n```\nNoArgs validates args and returns an error if there are any args\n\n```go\nfunc SetupRootCommand(rootCmd *cobra.Command)\n```\nSetupRootCommand sets default usage, help, and error handling for the root command.\n\n## Types\n\n```go\ntype Errors []error\n```\nErrors is a list of errors. Useful in a loop if you don't want to return the error right away and you want to display after the loop, all the errors that happened during the loop.\n\n```go\nfunc (errList Errors) Error() string\n```\n\n```go\ntype StatusError struct {\n\tStatus     string\n\tStatusCode int\n}\n```\nStatusError reports an unsuccessful exit by a command.\n\n```go\nfunc (e StatusError) Error() string\n```\n\n","path":"github.com/day2devops/moby/cli","name":"cli","synopsis":"","isRedistributable":true}
