utils

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

View Source
const (
	NoopCommand string = "NOOP_COMMAND_DO_NOT_RUN"
	DebianRoot  string = "/usr/share/doc"
	LicenseFile string = "copyright"
)

Variables

This section is empty.

Functions

func CompileAndRunRegex

func CompileAndRunRegex(regex string, base string, shouldMatch bool) bool

func SubstituteEnvVar added in v1.2.0

func SubstituteEnvVar(arg string, env map[string]string) string

func SubstituteEnvVars added in v1.2.0

func SubstituteEnvVars(args []string, env map[string]string) []string

func UserConfirmation

func UserConfirmation(message string, force bool) bool

adapted from https://gist.github.com/albrow/5882501

func ValueInList

func ValueInList(target string, list []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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