Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add support for multiple ENV key/values in one line
func (b *buildFile) CmdEnv(args string) error {
var env map[string]string
if err := json.Unmarshal([]byte(args), &env); err != nil {
env = []string{args}
}
if err := b.commit("", env, fm.Sprintf("ENV %v", env)); err != nil {
return err
}
b.config.Env = env
return nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.