cmdutil

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

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 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