pulumi/pkg
bors[bot] e9021ba52e
Merge #12499
12499: refactor(cmd/stack init): Turn into a command struct r=abhinav a=abhinav

This refactors the `pulumi stack init` command implementation
in the same vein as #12400 and #11951.

In short, this moves
flags and global dependencies are moved to a stackInitCmd struct,
and the command implementation into a Run method on that struct.

Doing so allows direct testing of the command implementation.
As demonstration, this includes a variant of the
"--teams is not supported" test directly against the command.
This test needed a mock StackReference,
so this PR also adds one to the pkg/backend package.

This PR contains no behavior changes for the 'stack init' command.
However, this does move the default value of the --secrets-provider flag
into the Run method instead of being applied by Cobra.


Co-authored-by: Abhinav Gupta <abhinav@pulumi.com>
2023-03-27 17:26:12 +00:00
..
authhelpers make linter happy 2023-02-08 10:30:10 -08:00
backend Merge #12499 2023-03-27 17:26:12 +00:00
cmd/pulumi refactor(cmd/stack init): Turn into a command struct 2023-03-27 09:29:54 -07:00
codegen Merge #12518 2023-03-27 15:43:51 +00:00
engine This commit adds the `Created` and `Modified` timestamps to pulumi state that are optional. 2023-03-27 09:28:26 -07:00
graph all: Assert => Assertf 2023-03-03 14:37:43 -08:00
importer all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
operations all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
resource Merge #12082 2023-03-27 16:37:03 +00:00
secrets all: Assert => Assertf 2023-03-03 14:37:43 -08:00
testing/integration chore(all): Log to iotest.LogWriter from tests 2023-03-07 11:27:47 -08:00
util all: Assert => Assertf 2023-03-03 14:37:43 -08:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod chore: post-release go.mod updates 2023-03-24 22:58:23 +00:00
go.sum go mod tidy 2023-03-16 12:14:49 +01:00

README.md

pulumi/pkg

While pulumi/sdk maintains strict backwards compatibility guarantees, code under pkg/ is handled more informally: while breaking changes are still discouraged they may happen when they make sense.