cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 23 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewRootCommand

func NewRootCommand() *cobra.Command

func NewSearchCmd

func NewSearchCmd() *cobra.Command

func NewUploadCmd

func NewUploadCmd() *cobra.Command

func NewVerifyCmd

func NewVerifyCmd() *cobra.Command

func NewVersionCmd

func NewVersionCmd() *cobra.Command

Types

type CLIFlagError

type CLIFlagError struct {
	// contains filtered or unexported fields
}

func NewCLIFlagError

func NewCLIFlagError(cmd *cobra.Command, err error) *CLIFlagError

func (*CLIFlagError) Error

func (c *CLIFlagError) Error() string

type Info

type Info struct {
	GitVersion   string
	GitCommit    string
	GitTreeState string
	BuildDate    string
	GoVersion    string
	Compiler     string
	Platform     string
}

func VersionInfo

func VersionInfo() Info

func (*Info) JSONString

func (i *Info) JSONString() (string, error)

JSONString returns the JSON representation of the version info

func (*Info) String

func (i *Info) String() string

String returns the string representation of the version info

Jump to

Keyboard shortcuts

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