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

DXCDT-331: Fix how we check if we should prompt when no flags set on cmd invocation #616

Merged
merged 2 commits into from
Jan 18, 2023

Conversation

sergiught
Copy link
Contributor

@sergiught sergiught commented Jan 18, 2023

🔧 Changes

Sadly, a regression was introduced through #563, where we moved the --json flag from a global flag to a local flag. This caused the old shouldPromptWhenNoLocalFlagsSet() func to miss behave and incorrectly skip prompting for flag values to be set in interactive mode when just the --json flag was present (e.g. auth0 ap bpd update --json). This PR addresses this and as well includes a check for the --force flag as that was removed from the global level as well in a subsequent PR.

📚 References

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@sergiught sergiught self-assigned this Jan 18, 2023
@sergiught sergiught marked this pull request as ready for review January 18, 2023 19:44
@sergiught sergiught requested a review from a team as a code owner January 18, 2023 19:44
@willvedd willvedd enabled auto-merge (squash) January 18, 2023 21:58
@willvedd willvedd merged commit abe6c4c into v1 Jan 18, 2023
@willvedd willvedd deleted the patch/DXCDT-331-ap-json-update branch January 18, 2023 23:04
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.

3 participants