flags

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHost

func AddHost(cmd *cobra.Command)

Add a flag for the API host

func AddKey

func AddKey(cmd *cobra.Command)

Add a flag for the API key

func AddOutputDebug

func AddOutputDebug(cmd *cobra.Command)

Add output debug flag

func AddOutputQuiet

func AddOutputQuiet(cmd *cobra.Command)

Add output quiet flag

func AddPulseEnvironments

func AddPulseEnvironments(cmd *cobra.Command)

Add a flag for pulse services

func AddPulseLabels

func AddPulseLabels(cmd *cobra.Command)

Add a flag for pulse labels

func AddPulseRefs

func AddPulseRefs(cmd *cobra.Command)

Add a flag for pulse services

func AddPulseServices

func AddPulseServices(cmd *cobra.Command)

Add a flag for pulse services

func AddPulseSource

func AddPulseSource(cmd *cobra.Command)

Add a flag for pulse services

func AddPulseSummary

func AddPulseSummary(cmd *cobra.Command)

Add a flag for a pulse summary

func GetArray

func GetArray(name models.ConfigPiece, cmd *cobra.Command) ([]string, log.CtxErr)

Get the value of an array flag

func GetBool

func GetBool(name models.ConfigPiece, cmd *cobra.Command) (bool, log.CtxErr)

Get the value of a boolean flag

func GetString

func GetString(name models.ConfigPiece, cmd *cobra.Command) (string, log.CtxErr)

Get the value of a string flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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