cli

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidNumArguments indicates that the number of arguments in a command is not valid
	ErrInvalidNumArguments = errors.New("invalid number of arguments")
)

Functions

func InitCommand

func InitCommand(c *cli.Context) error

func LoginCommand

func LoginCommand(c *cli.Context) error

func LogoutCommand

func LogoutCommand(c *cli.Context) error

func MergeCommands

func MergeCommands(cmds ...[]*cli.Command) []*cli.Command

MergeCommands merges all the arrays with CLI commands into one

func MergeFlags

func MergeFlags(flags ...[]cli.Flag) []cli.Flag

MergeFlags merges all the arrays with CLI flags into one

func NoOpCommand

func NoOpCommand(c *cli.Context) error

NoOpCommand is just a placeholder

func WithAuthCommands

func WithAuthCommands() []*cli.Command

func WithGlobalFlags

func WithGlobalFlags() []cli.Flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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