args

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2015 License: MPL-2.0 Imports: 1 Imported by: 146

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAndReplace

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

ParseAndReplace takes the user supplied args and a map of environment variables. It replaces any instance of an environment variable in the args with the actual value.

func ReplaceEnv

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

ReplaceEnv takes an arg and replaces all occurences of environment variables. If the variable is found in the passed map it is replaced, otherwise the original string is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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