cmd

package
v0.0.0-...-5c34344 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

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 GetFlag

func GetFlag(cmd *cobra.Command, flag string) bool

GetFlag gets an expected flag, or panic if an error arises.

func GetInt

func GetInt(cmd *cobra.Command, flag string) int

GetInt gets an expectedsigned integer, or panic if an error arises.

func GetString

func GetString(cmd *cobra.Command, flag string) string

GetString gets an expected string, or panic if an error arises.

func GetStringArray

func GetStringArray(cmd *cobra.Command, flag string) []string

GetStringArray gets an expected string array, or panic if an error arises.

func GetUint

func GetUint(cmd *cobra.Command, flag string) uint

GetUint gets an expected unsigned integer, or panic if an error arises.

Types

type ColSummariser

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

ColSummariser abstracts the notion of a function which summarises the contents of a given column.

Jump to

Keyboard shortcuts

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