cmdutil

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 7 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 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