cmdutil

package
v0.0.0-...-677f5df Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatStringsArrays

func ConcatStringsArrays(values ...[]string) []string

ConcatStringsArrays flattens each []string in the arguments into a string.

func EnsureAbsolutePathFromWorkspace

func EnsureAbsolutePathFromWorkspace(workspaceRoot, path string) string

EnsureAbsolutePathFromWorkspace returns path if path is absolute; otherwise it is interpretted as relative to workspaceRoot, and filepath.Join(workspaceRoot, path) is returned.

func LogFlags

func LogFlags()

func LookupEnvOrDefault

func LookupEnvOrDefault(key, defaultValue string) string

LookupEnvOrDefault returns os.LookupEnv(key) or defaultValue if the key is not in the environment.

func SignalCancelledContext

func SignalCancelledContext(parentCtx context.Context, signals ...os.Signal) (ctx context.Context, stop context.CancelFunc)

SignalCancelledContext returns a child context and cancellation function. If an incoming signal occurs that is in the signals list, the cancellation function is called.

Types

This section is empty.

Jump to

Keyboard shortcuts

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