cobraadaptor

package
v1.12.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2016 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL