cmd

package
v0.0.0-...-741fd3f Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 77

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 context.CancelCauseFunc)

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