application

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Config []interface{}
	// contains filtered or unexported fields
}

func NewApplication

func NewApplication(runner func(app *Application) error, config ...interface{}) *Application

func (*Application) AddCommand added in v1.0.6

func (app *Application) AddCommand(cmd ...*cobra.Command)

func (*Application) Context

func (app *Application) Context() *context.WaitStopContext

func (*Application) Start

func (app *Application) Start()

func (*Application) WaitStop

func (app *Application) WaitStop(clearFunc func(ctx *context.WaitStopContext) error)

Jump to

Keyboard shortcuts

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