cli

package
v0.0.0-...-bb8472d Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCommandLine

func ParseCommandLine(command string) ([]string, error)

Parses the command string into an array of [command, args, args]...

func ReplaceEnvironmentVariables

func ReplaceEnvironmentVariables(re *regexp.Regexp, str *string)

Replace the placeholders with actual environment variable values in string pointer. Given that a string pointer must be provided, the replacement happens in place.

func SetEnvVariables

func SetEnvVariables(vars map[string]string) (map[string]string, error)

prase system commands and store results to env

Types

This section is empty.

Jump to

Keyboard shortcuts

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