Skip to content

Commit

Permalink
add env map to base shell
Browse files Browse the repository at this point in the history
  • Loading branch information
azr committed Feb 15, 2022
1 parent 6411d45 commit 6e62225
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,15 @@ type Provisioner struct {
// for examples such as 3010 - "The requested operation is successful.
ValidExitCodes []int `mapstructure:"valid_exit_codes"`

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

// An map of environment variables that will be injected before your
// command(s) are executed. Any duplicate `environment_vars` will be
// overridden by `env`.
Env map[string]string `mapstructure:"env"`

// This is used in the template generation to format environment variables
// inside the `ExecuteCommand` template.
EnvVarFormat string `mapstructure:"env_var_format"`
Expand Down

0 comments on commit 6e62225

Please sign in to comment.