pulumi/sdk/go/pulumi-language-go
Pat Gavlin 064fb93587
[esc] Add commands for managing stack environments (#14628)
These changes add two commands for managing a stack's environments:

- `pulumi config env add`, which adds environments to a stack's import
list
- `pulumi config env rm`, which removes an environment from a stack's
import list

As implied by their paths, these commands hang off of a new sub-command
of `pulumi config`, `pulumi config env`.

From the usage:

* `pulumi config env add`

Adds environments to the end of a stack's import list. Imported
environments are merged in order per the ESC merge rules. The list of
stacks behaves as if it were the import list in an anonymous
environment.

* `pulumi config env rm`

Removes an environment from a stack's import list.

Each of these commands previews the new stack environment and shows the
environment definition. These commands print a warning if the stack's
environment does not define any of the `environmentVariables`, `files`,
or `pulumiConfig` properties.
2023-11-22 05:04:14 +00:00
..
testdata/sample fix(host/go): Allow Pulumi program in a subdir of the module 2023-05-17 13:20:38 -07:00
go.mod [esc] Add commands for managing stack environments (#14628) 2023-11-22 05:04:14 +00:00
go.sum [esc] Add commands for managing stack environments (#14628) 2023-11-22 05:04:14 +00:00
main.go Make language-python it's own module (#13819) 2023-08-31 16:35:21 +00:00
main_test.go fix(host/go): Download external plugins even if they're not imported 2023-07-11 16:22:15 -07:00