package cobraadaptor
import "github.com/docker/docker/cli/cobraadaptor"
Index ¶
Types ¶
type CobraAdaptor ¶
type CobraAdaptor struct {
// contains filtered or unexported fields
}
CobraAdaptor is an adaptor for supporting spf13/cobra commands in the docker/cli framework
func NewCobraAdaptor ¶
func NewCobraAdaptor(clientFlags *cliflags.ClientFlags) CobraAdaptor
NewCobraAdaptor returns a new handler
func (CobraAdaptor) Command ¶
func (c CobraAdaptor) Command(name string) func(...string) error
Command returns a cli command handler if one exists
func (CobraAdaptor) GetRootCommand ¶
func (c CobraAdaptor) GetRootCommand() *cobra.Command
GetRootCommand returns the root command. Required to generate the man pages and reference docs from a script outside this package.
func (CobraAdaptor) Usage ¶
func (c CobraAdaptor) Usage() []cli.Command
Usage returns the list of commands and their short usage string for all top level cobra commands.
Source Files ¶
- Version
- v1.12.1-rc2
- Published
- Aug 17, 2016
- Platform
- js/wasm
- Imports
- 16 packages
- Last checked
- 4 minutes ago –
Tools for package owners.