template

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Usage is the cobra UsageTemplate for Hubble CLI.
	Usage = `` /* 841-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func Initialize

func Initialize()

Initialize goes through the registered commands, and their flagsets and initializes the help template command registry.

This must be called after all commands are added as sub-commands, because cmd.CommandPath relies on the commands having parents.

func RegisterFlagSets

func RegisterFlagSets(cmd *cobra.Command, flagsets ...*pflag.FlagSet)

RegisterFlagSets registers flags to be included in a commands usage text (--help).

Types

This section is empty.

Jump to

Keyboard shortcuts

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