cmdutil

package
v0.49.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth() bool

CheckAuth garanties a valid token is given to the CLI, for making authenticated calls, either from env var or config file

func CustomUsageTemplate added in v0.8.0

func CustomUsageTemplate(c *cobra.Command) string

CustomUsageTemplate returns usage template for the command. This is the default usage template from the command, with the additional help:feedback annotations, if specified

func DisableAuthCheck added in v0.16.1

func DisableAuthCheck(cmd *cobra.Command)

func GetSelector added in v0.44.0

func GetSelector(candidate string) (string, error)

func IsAuthCheckEnabled added in v0.16.1

func IsAuthCheckEnabled(cmd *cobra.Command) bool

func PrintRequireAuthMsg

func PrintRequireAuthMsg()

PrintRequireAuthMsg displays formatted message that authentication to reliably is mandatory to continue with the CLI command

Types

type Choice added in v0.8.0

type Choice []string

Choice is a list of string

func (Choice) Has added in v0.8.0

func (list Choice) Has(a string) bool

Has indicates whether the string slice contains the value

Jump to

Keyboard shortcuts

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