utils

package
v0.0.0-...-05c574e Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvEntriesAsMap

func EnvEntriesAsMap(env []string) map[string]string

func EvaluateExpression

func EvaluateExpression(env *cel.Env, expr string) (any, error)

func GetContextError

func GetContextError(err error) error

func IsCanceled

func IsCanceled(err error) bool

func Normalize

func Normalize(rawPaths []string, params NormalizeParameters, quoteValues string) error

func Terminate

func Terminate(cmd *exec.Cmd) error

func UseProcessGroup

func UseProcessGroup(cmd *exec.Cmd)

Types

type CanceledError

type CanceledError string

func (CanceledError) Error

func (e CanceledError) Error() string

type NormalizeParameters

type NormalizeParameters struct {
	OutputPath string
	Transforms []string
}

type Options

type Options map[string]*string

func ParseOptions

func ParseOptions(optionsStr string) (string, Options)

func (Options) GetBoolean

func (o Options) GetBoolean(key string) bool

func (Options) GetString

func (o Options) GetString(key string) string

type PathWarning

type PathWarning struct {
	// contains filtered or unexported fields
}

func ParseFilePaths

func ParseFilePaths(rawPaths []string, depth int) ([]string, []PathWarning)

func (PathWarning) Message

func (warn PathWarning) Message() messages.Update

Jump to

Keyboard shortcuts

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