util

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 6 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 OptsCompleter added in v1.4.0

func OptsCompleter(args []Flag) func(prefix string, args []string) []string

OptsCompleter creates completer function for ishell from list of opts

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