Accept -f as a shorthand for --skip-preview on up, refresh and destroy operations (#5556)

Fixes: #2321
This commit is contained in:
Paul Stack 2020-10-13 11:10:59 +01:00 committed by GitHub
parent 156aa9862e
commit 095da7084c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 7 deletions

View file

@ -37,7 +37,10 @@ CHANGELOG
- [cli] Ensure old secret provider variables are cleaned up when changing between secret providers
[#5545](https://github.com/pulumi/pulumi/pull/5545)
- [cli] Accept `-f` as a shorthand for `--skip-preview` on `pulumi up`, `pulumi refresh` and `pulumi destroy` operations
[#5556](https://github.com/pulumi/pulumi/pull/5556)
- [cli] Validate cloudUrl formats before `pulumi login` and throw an error if incorrect format specified
[#5550](https://github.com/pulumi/pulumi/pull/5545)

View file

@ -193,8 +193,8 @@ func newDestroyCmd() *cobra.Command {
cmd.PersistentFlags().BoolVar(
&showSames, "show-sames", false,
"Show resources that don't need to be updated because they haven't changed, alongside those that do")
cmd.PersistentFlags().BoolVar(
&skipPreview, "skip-preview", false,
cmd.PersistentFlags().BoolVarP(
&skipPreview, "skip-preview", "f", false,
"Do not perform a preview before performing the destroy")
cmd.PersistentFlags().BoolVar(
&suppressOutputs, "suppress-outputs", false,

View file

@ -186,8 +186,8 @@ func newRefreshCmd() *cobra.Command {
cmd.PersistentFlags().BoolVar(
&showSames, "show-sames", false,
"Show resources that needn't be updated because they haven't changed, alongside those that do")
cmd.PersistentFlags().BoolVar(
&skipPreview, "skip-preview", false,
cmd.PersistentFlags().BoolVarP(
&skipPreview, "skip-preview", "f", false,
"Do not perform a preview before performing the refresh")
cmd.PersistentFlags().BoolVar(
&suppressOutputs, "suppress-outputs", false,

View file

@ -454,8 +454,8 @@ func newUpCmd() *cobra.Command {
&showReads, "show-reads", false,
"Show resources that are being read in, alongside those being managed directly in the stack")
cmd.PersistentFlags().BoolVar(
&skipPreview, "skip-preview", false,
cmd.PersistentFlags().BoolVarP(
&skipPreview, "skip-preview", "f", false,
"Do not perform a preview before performing the update")
cmd.PersistentFlags().BoolVar(
&suppressOutputs, "suppress-outputs", false,