util

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: MIT Imports: 5 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 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 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