cliutil

package
v0.5.16 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIncorrectNArgs = errors.New("incorrect number of arguments")
View Source
var ErrReallyDoIt = errors.New("you must pass --really-do-it to do this")
View Source
var ReallyDotItFlag = &cli.BoolFlag{
	Name:  "really-do-it",
	Usage: "Really do it",
}

Functions

func CheckNArgs added in v0.4.0

func CheckNArgs(c *cli.Context) error

func Failure added in v0.4.0

func Failure(msg string) string

func HandleReallyDoIt added in v0.3.0

func HandleReallyDoIt(context *cli.Context) error

func Print added in v0.4.0

func Print(c *cli.Context, obj any)

func PrintAsJSON added in v0.2.8

func PrintAsJSON(c *cli.Context, obj any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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