Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

fix/sg: fix 'sg enterprise' per-command flags#63527

Merged
bobheadxi merged 1 commit into
mainfrom
fix-sg-ep-flags
Jun 27, 2024
Merged

fix/sg: fix 'sg enterprise' per-command flags#63527
bobheadxi merged 1 commit into
mainfrom
fix-sg-ep-flags

Conversation

@bobheadxi

@bobheadxi bobheadxi commented Jun 27, 2024

Copy link
Copy Markdown
Member

Using append on a variable, then sharing that variable, surprisingly seems to cause nondeterministic behaviour in the flags. This makes the shared flag set a function so that each command gets its own set to append to.

This is causing some flags to show up as non-existent in automation.

Test plan

sg enterprise subscription list -h now has the correct flags

@bobheadxi bobheadxi requested a review from a team June 27, 2024 18:49
@cla-bot cla-bot Bot added the cla-signed label Jun 27, 2024
@bobheadxi bobheadxi enabled auto-merge (squash) June 27, 2024 18:50
@bobheadxi bobheadxi requested a review from a team June 27, 2024 18:50
@bobheadxi bobheadxi merged commit 28496f4 into main Jun 27, 2024
@bobheadxi bobheadxi deleted the fix-sg-ep-flags branch June 27, 2024 19:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants