testcobra

package
v0.93.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckCobraCommandAliases added in v0.5.0

func CheckCobraCommandAliases(t *testing.T, command *cobra.Command, requiredAliases []string)

CheckCobraCommandAliases is a helper function to make sure that the Cobra command has certain required aliases set

func CheckCobraMetadata

func CheckCobraMetadata(t *testing.T, command *cobra.Command)

CheckCobraMetadata requires metadata fields be set on the command sent and any sub-command it contains. Only checks one level deep.

func CheckCobraRequiredFlags

func CheckCobraRequiredFlags(t *testing.T, command *cobra.Command, requiredFlags []string)

CheckCobraRequiredFlags is a helper function to make sure that the Cobra command has certain required flags set

Types

This section is empty.

Jump to

Keyboard shortcuts

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