pulumi/cmd
Matt Ellis 8d4b227fee Early out in project file upgrade code
We have some code that deals with upgrading legacy projects (which had
workspace level configuration) to the new format where configuration
information was stored SxS with the application.

This code requires us to get a list of stacks from the backend (which
for hosted stacks means hitting api.pulumi.com) as part of the upgrade
process, so we knew all the stacks the user's project has. This is a
somewhat slow operation (which we will make faster regardless) but we
can structure things such that we don't need to do this often.

In the common case, we don't need to actually do upgrading at
all (new projects won't need it and once a project is upgraded that
project won't need it either) so update the code first to check if we
would need to do any work and if so, do the expensive operation of
getting stacks from a backend.

This should help with the slight pauses we've seen on the command line
since the work to default to folks logging in has landed.
2018-04-09 17:07:14 -07:00
..
config.go Fix typeo in error message 2018-03-31 13:48:46 -07:00
config_test.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
debug_cmds.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
destroy.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
history.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
init.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
login.go Require pulumi login before commands that need a backend 2018-04-05 10:19:41 -07:00
logout.go Require pulumi login before commands that need a backend 2018-04-05 10:19:41 -07:00
logs.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
logs_test.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
new.go Extract a Pulumi API client. 2018-03-21 16:45:54 -07:00
plugin.go Show correct plugin sizes (#1137) 2018-04-09 12:51:32 -07:00
plugin_install.go Remove -e shorthand for --exact 2018-04-08 10:58:26 -07:00
plugin_ls.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
plugin_rm.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
preview.go General prep work for refresh 2018-03-28 07:45:23 -07:00
pulumi.go Require pulumi login before commands that need a backend 2018-04-05 10:19:41 -07:00
stack.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
stack_export.go Run tests against managed stacks backend instead of FnF (#1092) 2018-04-02 21:34:54 -07:00
stack_graph.go Spruce up the stack graph command: 2018-02-22 17:31:45 -08:00
stack_import.go Run tests against managed stacks backend instead of FnF (#1092) 2018-04-02 21:34:54 -07:00
stack_init.go Require pulumi login before commands that need a backend 2018-04-05 10:19:41 -07:00
stack_ls.go Require pulumi login before commands that need a backend 2018-04-05 10:19:41 -07:00
stack_output.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
stack_output_test.go Adjust stack output formating in the CLI 2018-02-16 12:25:25 -08:00
stack_rm.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
stack_select.go Require pulumi login before commands that need a backend 2018-04-05 10:19:41 -07:00
update.go General prep work for refresh 2018-03-28 07:45:23 -07:00
util.go Early out in project file upgrade code 2018-04-09 17:07:14 -07:00
version.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00