cli

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT 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 File

func File(label string, types []string) (string, error)

func Info

func Info(v ...interface{})

func Infof

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

func MustConfirm

func MustConfirm(label string, placeholder bool) bool

func MustFile

func MustFile(label string, types []string) string

func MustPrompt

func MustPrompt(label, placeholder string) string

func MustRun

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

func MustSelect

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

func OpenFile

func OpenFile(path string) error

func OpenURL

func OpenURL(url string) error

func Prompt

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

func Run

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

func Select

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

func ShowAppHelp added in v0.0.3

func ShowAppHelp(cmd *Command)

func Table

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

func Title

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