pulumi/pkg/cmd/pulumi
Fraser Waters 7831cbf7a8
filestate: Plumb context through constructor
Instead of using context.TODO everywhere,
plumb context.Context into filestate.New and filestate.Login,
and through that into other operations.

Extracted from #12134

Co-authored-by: Abhinav Gupta <abhinav@pulumi.com>
2023-03-13 13:24:32 -07:00
..
convert_testdata Refactor convert command to add entrypoint for pulumi convert debugging 2022-10-01 15:40:17 -07:00
pcl_convert_testdata Support PCL as a convert input (and output) 2022-11-11 10:45:40 +00:00
testdata/fuzz/FuzzPowershellStackOutputWriter cli/stack-ouput/test: Fix Powershell test failures 2023-01-30 07:58:47 -08:00
about.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
about_test.go Move about information to language plugins (#10392) 2022-08-15 14:55:04 +01:00
cancel.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
config.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
config_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
console.go pkg: Dedupe "open in browser" library 2023-03-10 10:57:33 -07:00
convert-trace.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
convert.go Close converter plugins after use 2023-03-13 15:23:33 +00:00
convert_test.go chore(all): strings.Replace(..., -1) => strings.Replace(...) 2023-03-01 13:22:33 -08:00
crypto.go all: Drop //nolint:goconst 2023-03-09 11:15:21 -08:00
destroy.go all: Drop //nolint:goconst 2023-03-09 11:15:21 -08:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
env.go Add `pulumi env` commmand 2022-12-14 15:41:42 +01:00
errors.go Be more consistent about using ` for quoting commands (#10434) 2022-08-18 15:31:22 +01:00
gen_completion.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen_markdown.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
import.go Close converter plugins after use 2023-03-13 15:23:33 +00:00
import_test.go pulumi import: Print all errors in the file 2023-02-14 19:02:32 -08:00
login.go filestate: Plumb context through constructor 2023-03-13 13:24:32 -07:00
logout.go Set the current project as ambient context on backends. 2023-03-03 20:32:42 +00:00
logs.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
logs_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
main.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
main_1.17_test.go [pkg] Enable main_test to compile on go 1.17 and go 1.18 (#9771) 2022-06-09 16:47:49 -07:00
main_1.18_test.go [pkg] Enable main_test to compile on go 1.17 and go 1.18 (#9771) 2022-06-09 16:47:49 -07:00
main_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
new.go all: Drop //nolint:goconst 2023-03-09 11:15:21 -08:00
new_acceptance_test.go Pass *workspace.Project to GetBackendConfigDefaultOrg 2023-03-07 09:17:52 +00:00
new_test.go Pass *workspace.Project to GetBackendConfigDefaultOrg 2023-03-07 09:17:52 +00:00
org.go Pass *workspace.Project to GetBackendConfigDefaultOrg 2023-03-07 09:17:52 +00:00
package.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
package_extract_schema.go Add gen-sdk sub-command 2022-09-14 17:07:05 +02:00
package_gen_sdk.go all: Drop //nolint:goconst 2023-03-09 11:15:21 -08:00
plugin.go Engine and Golang support for shimless providers 2022-11-14 11:25:41 +00:00
plugin_install.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
plugin_ls.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
plugin_rm.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
policy.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
policy_disable.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
policy_enable.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
policy_group_ls.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
policy_ls.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
policy_new.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
policy_new_acceptance_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
policy_new_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
policy_publish.go Set the current project as ambient context on backends. 2023-03-03 20:32:42 +00:00
policy_rm.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
policy_validate.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
preview.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
pulumi.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
pulumi_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
query.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
refresh.go Reorder pending create options to make it easier for users to hold 2023-03-07 11:08:00 -08:00
replay_events.go [cli] Add an "open in browser" keybinding 2023-03-09 15:52:13 -08:00
schema.go [codegen/schema] Add a schema checker (#7865) 2021-08-30 19:29:24 -07:00
schema_check.go all: Drop ioutil 2023-01-06 16:35:14 -08:00
stack.go Merge #12005 2023-01-27 19:21:08 +00:00
stack_change_secrets_provider.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
stack_export.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
stack_graph.go Push DefaultSecretsProvider up to pkg/cmd 2023-01-27 12:04:52 +00:00
stack_history.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
stack_import.go cmd: Reduce noise from offerNew, setCurrent bool 2023-01-20 15:34:39 -08:00
stack_init.go Set the current project as ambient context on backends. 2023-03-03 20:32:42 +00:00
stack_ls.go Pass *Project to currentBackend 2023-02-17 13:20:38 +00:00
stack_ls_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
stack_output.go Merge #12005 2023-01-27 19:21:08 +00:00
stack_output_fuzz_test.go cli/stack-ouput/test: Fix Powershell test failures 2023-01-30 07:58:47 -08:00
stack_output_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
stack_rename.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
stack_rm.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
stack_select.go Set the current project as ambient context on backends. 2023-03-03 20:32:42 +00:00
stack_tag.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
stack_unselect.go include error in formatted message and explicitly check for an empty stack 2022-03-14 11:32:33 +01:00
state.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
state_delete.go Add `pulumi state delete --target-dependents` 2022-10-27 11:23:56 -07:00
state_rename.go Thread context through cmd more consistently (#10393) 2022-08-16 12:35:39 +01:00
state_unprotect.go pkg/cmd: Prefer contract.Assertf over contract.Assert 2023-02-08 10:58:11 -08:00
terminal.go crypto/ssh/terminal is deprecated 2023-01-12 09:07:34 -08:00
terminal_test.go Fix negative page size panic (#10475) 2022-08-23 16:45:47 -04:00
up.go Set the current project as ambient context on backends. 2023-03-03 20:32:42 +00:00
up_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
util.go filestate: Plumb context through constructor 2023-03-13 13:24:32 -07:00
util_remote.go Merge #11716 2023-03-04 17:04:26 +00:00
util_remote_test.go [cli] Experimental support for remote operations 2022-10-27 16:15:59 -07:00
util_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
version.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
view-trace.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
watch.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
whoami.go cmd/whoami: Override stdout and currentBackend, add tests 2023-03-09 10:20:47 -08:00
whoami_test.go cmd/whoami: Override stdout and currentBackend, add tests 2023-03-09 10:20:47 -08:00