cmd

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 25 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 GenerateCommandDocs

func GenerateCommandDocs(cmd *cobra.Command, commandsToDocument map[string]DocumentedCmd, usageTree string) error

func NewBundleCmd

func NewBundleCmd() *cobra.Command

func NewInspectBundleCmd

func NewInspectBundleCmd() *cobra.Command

func NewInspectJWTCmd

func NewInspectJWTCmd() *cobra.Command

func NewInspectX509Cmd

func NewInspectX509Cmd() *cobra.Command

func NewJWTSVIDCmd

func NewJWTSVIDCmd() *cobra.Command

func NewVerifyJWTSVIDCmd

func NewVerifyJWTSVIDCmd() *cobra.Command

func NewVerifyX509Cmd

func NewVerifyX509Cmd() *cobra.Command

func NewVerifyX509SVIDCmd

func NewVerifyX509SVIDCmd() *cobra.Command

func NewWatchBundleCmd

func NewWatchBundleCmd() *cobra.Command

NewWatchBundleCmd returns the `watch bundle` subcommand.

func NewWatchJWTSVIDCmd

func NewWatchJWTSVIDCmd() *cobra.Command

NewWatchJWTSVIDCmd returns the `watch jwt-svid` subcommand.

func NewWatchX509SVIDCmd

func NewWatchX509SVIDCmd() *cobra.Command

NewWatchX509SVIDCmd returns the `watch x509-svid` subcommand.

func NewX509SVIDCmd

func NewX509SVIDCmd() *cobra.Command

func SetVersionInfo added in v0.1.1

func SetVersionInfo(v, c, d string)

SetVersionInfo wires build-time version details into the root command, enabling the --version flag. Empty arguments are ignored so callers can pass through unset ldflags without clobbering the defaults.

Types

type DocumentedCmd

type DocumentedCmd struct {
	SidebarPosition int
	SubCommands     map[string]DocumentedCmd
	// contains filtered or unexported fields
}

type Options

type Options struct {
	ConfigFile string
}

type PromptUIPrompter

type PromptUIPrompter struct{}

func NewPromptUIPrompter

func NewPromptUIPrompter() *PromptUIPrompter

func (*PromptUIPrompter) Run

func (p *PromptUIPrompter) Run(prompt promptui.Prompt) (string, error)

type Prompter

type Prompter interface {
	Run(promptui.Prompt) (string, error)
}

Jump to

Keyboard shortcuts

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