cmd

package
v0.0.0-...-bf9fd61 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 53

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(rootCmd *cobra.Command)

AddFlags adds all command line flags to the given command.

func PrintFlags

func PrintFlags(flags *pflag.FlagSet)

PrintFlags logs the flags in the flagset

func WaitSignal

func WaitSignal(stop chan struct{})

WaitSignal awaits for SIGINT or SIGTERM and closes the channel

func WaitSignalFunc

func WaitSignalFunc(cancel func())

WaitSignalFunc awaits for SIGINT or SIGTERM and calls the cancel function

Types

This section is empty.

Jump to

Keyboard shortcuts

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