Skip to content

🩹 [Patch]: Add test where enabling -Verbose in a function is not allowed #53

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

Merged
merged 8 commits into from
Apr 14, 2024

Conversation

MariusStorhaug
Copy link
Member

Description

  • One of the points of having [Cmdletbinding()] is to be able to turn on verbosity logging from outside the function. This test now checks for enabling switches -Verbose or -Verbose:$true.
    • Fixes #20

Type of change

  • 📖 [Docs]
  • 🪲 [Fix]
  • 🩹 [Patch]
  • ⚠️ [Security fix]
  • 🚀 [Feature]
  • 🌟 [Breaking change]

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

@MariusStorhaug MariusStorhaug self-assigned this Apr 14, 2024
@MariusStorhaug MariusStorhaug requested a review from a team as a code owner April 14, 2024 08:41
@MariusStorhaug MariusStorhaug merged commit d08f4fe into main Apr 14, 2024
@MariusStorhaug MariusStorhaug deleted the verbose branch April 14, 2024 09:26
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.

[New Test] Should not hardcode -Verbose switches on commands
1 participant