Skip to content

Commit 6e62225

Browse files
committed
add env map to base shell
1 parent 6411d45 commit 6e62225

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

shell/shell.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,15 @@ type Provisioner struct {
3636
// for examples such as 3010 - "The requested operation is successful.
3737
ValidExitCodes []int `mapstructure:"valid_exit_codes"`
3838

39-
// An array of environment variables that will be injected before
40-
// your command(s) are executed.
39+
// An array of environment variables that will be injected before your
40+
// command(s) are executed. Any duplicate vars will be overridden by `env`.
4141
Vars []string `mapstructure:"environment_vars"`
4242

43+
// An map of environment variables that will be injected before your
44+
// command(s) are executed. Any duplicate `environment_vars` will be
45+
// overridden by `env`.
46+
Env map[string]string `mapstructure:"env"`
47+
4348
// This is used in the template generation to format environment variables
4449
// inside the `ExecuteCommand` template.
4550
EnvVarFormat string `mapstructure:"env_var_format"`

0 commit comments

Comments
 (0)