cmdroot

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(appVersion string) *cobra.Command

New returns the newly created object pointer of the "root" command.

The argument appVersion will be used when "--version" option was called. If empty it will auto-detect.

Types

type Command

type Command struct {
	*cobra.Command
}

Command is the struct to hold cobra.Command and it's flag options.

Jump to

Keyboard shortcuts

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