checking in before refactoring interpolation

This commit is contained in:
brent saner
2024-04-11 12:46:13 -04:00
parent 187ad868db
commit eed9c34ebf
17 changed files with 2014 additions and 48 deletions

18
envs/utils_nonwindows.go Normal file
View File

@@ -0,0 +1,18 @@
//go:build !windows
package envs
import (
`os`
)
/*
interpolateString takes string s and performs environment variable interpolation/substitution on it.
err will always be nil; it's here for compat with the Windows equivalent.
*/
func interpolateString(s string) (subbed string, err error) {
subbed = os.ExpandEnv(s)
return
}