Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove --show-* as persistent flags #4294

Closed
wants to merge 2 commits into from
Closed

fix: remove --show-* as persistent flags #4294

wants to merge 2 commits into from

Conversation

nesl247
Copy link
Contributor

@nesl247 nesl247 commented Apr 3, 2020

Fixes #4290

@leezen leezen requested a review from justinvp April 3, 2020 21:23
Copy link
Member

@justinvp justinvp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

pkg/cmd/stack.go Outdated
&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(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about show-secrets?

Suggested change
cmd.PersistentFlags().BoolVar(
cmd.Flags().BoolVar(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't change that as I wasn't sure if it affected stack output or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually went back and looked at the reason for this. --show-ids and --show-urns are flags for pulumi stack itself, which --show-secrets I believe to affect export and such.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked into this in more detail.

There is a pulumi stack output command which also accepts --show-secrets, but it redefines this flag for itself.

There's no other commands under stack that refers to its showSecrets bool variable or is otherwise looking for "show-secrets", so we should be able to change it here from PersistentFlags to Flags.

@stack72
Copy link
Contributor

stack72 commented Apr 10, 2020

@nesl247 I am going to merge this manually since the tests don't run on a community PR (which we will be fixing soon!!!)

Thanks for the work here - it's very much appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--show-urns is in Global Flags for pulumi stack export
3 participants