commands

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolVar

func BoolVar(rawArgs []string, args Flag) bool

func CheckArgs

func CheckArgs(c *ishell.Context, args []Flag) error

func Execute

func Execute(osArgs []string)

func HelpText

func HelpText(c *ishell.Context, args []Flag) bool

func Info

func Info(a ...interface{})

func IntVar

func IntVar(rawArgs []string, args Flag) (int, error)

func IsInteractive

func IsInteractive(osArgs []string) bool

func StringSliceVar

func StringSliceVar(rawArgs []string, args Flag) []string

func StringVar

func StringVar(rawArgs []string, args Flag) string

func Warn

func Warn(a ...interface{})

Types

type Flag

type Flag struct {
	Name  string
	Usage string
	Must  bool
	Value interface{}
}

Jump to

Keyboard shortcuts

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