cli

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(cmd *cobra.Command)

AddCommand adds a subcommand to the root command

func AddOutputFlag

func AddOutputFlag(cmd *cobra.Command, usage string)

AddOutputFlag adds the -o/--output flag to a command

func AddPagesFlag

func AddPagesFlag(cmd *cobra.Command, usage string)

AddPagesFlag adds the -p/--pages flag to a command

func AddPasswordFlag

func AddPasswordFlag(cmd *cobra.Command, usage string)

AddPasswordFlag adds the --password flag to a command

func Execute

func Execute() error

Execute runs the root command

func Force

func Force() bool

Force returns whether force mode is enabled

func GetOutput

func GetOutput(cmd *cobra.Command) string

GetOutput gets the output flag value

func GetPages

func GetPages(cmd *cobra.Command) string

GetPages gets the pages flag value

func GetPassword

func GetPassword(cmd *cobra.Command) string

GetPassword gets the password flag value

func GetRootCmd

func GetRootCmd() *cobra.Command

GetRootCmd returns the root command for testing

func PrintVerbose

func PrintVerbose(format string, args ...interface{})

PrintVerbose prints a message if verbose mode is enabled

func SetVersion

func SetVersion(v, c, d string)

SetVersion sets the version info from build flags

func Verbose

func Verbose() bool

Verbose returns whether verbose mode is enabled

Types

This section is empty.

Jump to

Keyboard shortcuts

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