fix: remove --show-* as persistent flags

This commit is contained in:
Harrison Heck 2020-04-10 16:37:44 +01:00 committed by stack72
parent 7f3ea52202
commit 5dd669168b
3 changed files with 8 additions and 5 deletions

View file

@ -46,6 +46,9 @@ CHANGELOG
- Fix logout with file backend when state is deleted
[#4218](https://github.com/pulumi/pulumi/pull/4218)
- Fix specific flags for `pulumi stack` being global
[#4218](https://github.com/pulumi/pulumi/pull/4218)
## 1.14.0 (2020-04-01)
- Fix error related to side-by-side versions of `@pulumi/pulumi`.

View file

@ -69,9 +69,9 @@ func newLogoutCmd() *cobra.Command {
var err error
if filestate.IsFileStateBackendURL(cloudURL) {
return workspace.DeleteAccount(cloudURL)
} else {
be, err = httpstate.New(cmdutil.Diag(), cloudURL)
}
be, err = httpstate.New(cmdutil.Diag(), cloudURL)
if err != nil {
return err
}

View file

@ -154,11 +154,11 @@ func newStackCmd() *cobra.Command {
cmd.PersistentFlags().StringVarP(
&stackName, "stack", "s", "",
"The name of the stack to operate on. Defaults to the current stack")
cmd.PersistentFlags().BoolVarP(
cmd.Flags().BoolVarP(
&showIDs, "show-ids", "i", false, "Display each resource's provider-assigned unique ID")
cmd.PersistentFlags().BoolVarP(
cmd.Flags().BoolVarP(
&showURNs, "show-urns", "u", false, "Display each resource's Pulumi-assigned globally unique URN")
cmd.PersistentFlags().BoolVar(
cmd.Flags().BoolVar(
&showSecrets, "show-secrets", false, "Display stack outputs which are marked as secret in plaintext")
cmd.AddCommand(newStackExportCmd())