pulumi/cmd
Joe Duffy 36ab8f0087
Make config a little less error prone
As articulated in #714, the way config defaults to workspace-local
configuration is a bit error prone, especially now with the cloud
workflow being the default.  This change implements several improvements:

* First, --save defaults to true, so that configuration changes will
  persist into your project file.  If you want the old local workspace
  behavior, you can specify --save=false.

* Second, the order in which we applied configuration was a little
  strange, because workspace settings overwrote project settings.
  The order is changed now so that we take most specific over least
  specific configuration.  Per-stack is considered more specific
  than global and project settings are considered more specific
  than workspace.

* We now warn anytime workspace local configuration is used.  This
  is a developer scenario and can have subtle effects.  It is simply
  not safe to use in a team environment.  In fact, I lost an arm
  this morning due to workspace config... and that's why you always
  issue warnings for unsafe things.
2017-12-13 10:46:54 -08:00
..
lumidl Argument validation for CLI commands 2017-11-29 16:10:53 -08:00
config.go Make config a little less error prone 2017-12-13 10:46:54 -08:00
config_test.go Save config information in Pulumi.yaml 2017-10-20 13:30:07 -07:00
debug_cmds.go Improve the overall cloud CLI experience 2017-12-02 14:34:42 -08:00
destroy.go Make some updates based on CR feedback 2017-12-03 08:10:50 -08:00
init.go Argument validation for CLI commands 2017-11-29 16:10:53 -08:00
login.go Add a logout --all command (#673) 2017-12-08 12:14:14 -08:00
logout.go Make config a little less error prone 2017-12-13 10:46:54 -08:00
logs.go Improve the overall cloud CLI experience 2017-12-02 14:34:42 -08:00
logs_test.go Address PR feedback on #600 (#611) 2017-11-28 12:54:36 -08:00
preview.go Improve the overall cloud CLI experience 2017-12-02 14:34:42 -08:00
pulumi.go Make config a little less error prone 2017-12-13 10:46:54 -08:00
stack.go Add a stack output command (#675) 2017-12-08 13:14:58 -08:00
stack_init.go Make config a little less error prone 2017-12-13 10:46:54 -08:00
stack_ls.go Widen stack ls columns slightly (#703) 2017-12-11 17:41:51 -08:00
stack_output.go Add a stack output command (#675) 2017-12-08 13:14:58 -08:00
stack_rm.go Make some updates based on CR feedback 2017-12-03 08:10:50 -08:00
stack_select.go Improve the overall cloud CLI experience 2017-12-02 14:34:42 -08:00
update.go Improve the overall cloud CLI experience 2017-12-02 14:34:42 -08:00
util.go Make config a little less error prone 2017-12-13 10:46:54 -08:00
version.go Add a manifest to checkpoint files (#630) 2017-12-01 13:50:32 -08:00