cli

package
v0.0.0-...-c2832fb Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Lifecycle = &LifecycleData{}

Functions

func AddCommand

func AddCommand(name, short, long string, cmd interface{})

func Run

func Run(args []string) int

Types

type Exec

type Exec struct{}

func (*Exec) Execute

func (e *Exec) Execute(args []string) error

type LifecycleData

type LifecycleData struct {
	// contains filtered or unexported fields
}

func (*LifecycleData) OnShutdown

func (l *LifecycleData) OnShutdown(handle func())

func (*LifecycleData) RunCleanup

func (l *LifecycleData) RunCleanup()

func (*LifecycleData) Shutdown

func (l *LifecycleData) Shutdown(code int)

func (*LifecycleData) Start

func (l *LifecycleData) Start()

type Router

type Router struct {
	ConfigFile string `short:"c" long:"config" description:"path to config file"`
	Available  bool   `short:"a" long:"available" description:"list all available plugins"`
}

func (*Router) Execute

func (rt *Router) Execute(args []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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