command

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Use

func Use(cmd *cobra.Command, mw Func)

Types

type App

type App struct {
	context.Context

	// Global flags.
	Format string // -f|--format
}

func (*App) Register

func (app *App) Register(cmd *cobra.Command)

func (*App) Render

func (app *App) Render(v interface{}) error

type CobraFunc

type CobraFunc func(cmd *cobra.Command, args []string) error

func Errorf

func Errorf(message string, args ...interface{}) CobraFunc

type Func

type Func func(CobraFunc) CobraFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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