Documentation
¶
Index ¶
- func AddCommand(cmd *cobra.Command)
- func AddFormatFlag(cmd *cobra.Command)
- func AddOutputFlag(cmd *cobra.Command, usage string)
- func AddPagesFlag(cmd *cobra.Command, usage string)
- func AddPasswordFlag(cmd *cobra.Command, usage string)
- func AddStdoutFlag(cmd *cobra.Command)
- func Execute() error
- func Force() bool
- func GetFormat(cmd *cobra.Command) string
- func GetOutput(cmd *cobra.Command) string
- func GetPages(cmd *cobra.Command) string
- func GetPassword(cmd *cobra.Command) string
- func GetRootCmd() *cobra.Command
- func GetStdout(cmd *cobra.Command) bool
- func PrintProgress(operation string)
- func PrintStatus(format string, args ...interface{})
- func PrintVerbose(format string, args ...interface{})
- func Progress() bool
- func SetVersion(v, c, d string)
- func Verbose() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommand ¶
AddCommand adds a subcommand to the root command
func AddFormatFlag ¶ added in v1.4.0
AddFormatFlag adds the --format flag to a command for structured output.
func AddOutputFlag ¶
AddOutputFlag adds the -o/--output flag to a command
func AddPagesFlag ¶
AddPagesFlag adds the -p/--pages flag to a command
func AddPasswordFlag ¶
AddPasswordFlag adds the --password flag to a command
func AddStdoutFlag ¶ added in v1.4.0
AddStdoutFlag adds the --stdout flag to a command for binary stdout output.
func GetPassword ¶
GetPassword gets the password flag value
func PrintProgress ¶ added in v1.3.1
func PrintProgress(operation string)
PrintProgress prints a progress message (shown in verbose mode or for long operations)
func PrintStatus ¶ added in v1.3.1
func PrintStatus(format string, args ...interface{})
PrintStatus prints a status message to stderr (always shown)
func PrintVerbose ¶
func PrintVerbose(format string, args ...interface{})
PrintVerbose prints a message if verbose mode is enabled
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.