cli

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm

func Confirm(label string, placeholder bool) (bool, error)

func Error

func Error(v ...interface{})

func Errorf

func Errorf(format string, a ...interface{})

func Fatal

func Fatal(v ...interface{})

func Fatalf

func Fatalf(format string, a ...interface{})

func Info

func Info(v ...interface{})

func Infof

func Infof(format string, a ...interface{})

func MustConfirm added in v0.20.0

func MustConfirm(label string, placeholder bool) bool

func MustPrompt added in v0.20.0

func MustPrompt(label, placeholder string) string

func MustRun added in v0.20.8

func MustRun(title string, action func() error) error

func MustSelect added in v0.20.0

func MustSelect(label string, items []string) (int, string)

func OpenFile added in v0.20.0

func OpenFile(path string) error

func OpenURL

func OpenURL(url string) error

func Prompt

func Prompt(label, placeholder string) (string, error)

func Run added in v0.20.8

func Run(title string, action func() error) error

func Select

func Select(label string, items []string) (int, string, error)

func Table

func Table(header []string, rows [][]string)

func Title added in v0.20.0

func Title(val string)

func Warn

func Warn(v ...interface{})

func Warnf

func Warnf(format string, a ...interface{})

Types

type BoolFlag

type BoolFlag = cli.BoolFlag

type Command

type Command = cli.Command

type Flag

type Flag = cli.Flag

type IntFlag

type IntFlag = cli.IntFlag

type IntSliceFlag

type IntSliceFlag = cli.IntSliceFlag

type StringFlag

type StringFlag = cli.StringFlag

type StringSliceFlag

type StringSliceFlag = cli.StringSliceFlag

Jump to

Keyboard shortcuts

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