package
27.5.1+incompatible
Repository: https://github.com/docker/cli.git
Documentation: pkg.go.dev

# Packages

Package connhelper provides helpers for connecting to a remote daemon host with custom logic.
Package winresources is used to embed Windows resources into docker.exe.

# Functions

DisableFlagsInUseLine sets the DisableFlagsInUseLine flag on all commands within the tree rooted at cmd.
ExactArgs returns an error if there is not the exact number of args.
FlagErrorFunc prints an error message which matches the format of the docker/cli/cli error messages.
HasCompletionArg returns true if a cobra completion arg request is found.
NewTopLevelCommand returns a new TopLevelCommand object.
NoArgs validates args and returns an error if there are any args.
RequiresMaxArgs returns an error if there is not at most max args.
RequiresMinArgs returns an error if there is not at least min args.
RequiresRangeArgs returns an error if there is not at least min args and at most max args.
SetupPluginRootCommand sets default usage, help and error handling for a plugin root command.
SetupRootCommand sets default usage, help, and error handling for the root command.
VisitAll will traverse all commands from the root.

# Structs

StatusError reports an unsuccessful exit by a command.
TopLevelCommand encapsulates a top-level cobra command (either docker CLI or a plugin) and global flag handling logic necessary for plugins.

# Type aliases

Errors is a list of errors.