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

WhatIf support for commands #3894

Open
2 tasks done
Gijsreyn opened this issue Nov 4, 2024 · 0 comments
Open
2 tasks done

WhatIf support for commands #3894

Gijsreyn opened this issue Nov 4, 2024 · 0 comments
Labels
issue-doc-idea Issue - request for new content needs-triage Waiting - Needs triage

Comments

@Gijsreyn
Copy link

Gijsreyn commented Nov 4, 2024

Prerequisites

  • Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
  • Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Document new Get-Foo cmdlet" instead of "New cmdlet."

Summary

As a user, I want to see what the impact of some of the commands is going to be. This helps to provide messages even before the command is actually executed. With the rise of dsc.exe, this allows implementing the -WhatIf operation.

Scenario: Install a language

Take for example the Install-Language command. Even though you could use $allLangues = [System.Globalization.CultureInfo]::GetCultures("AllCultures") to list out all languages and pass it to Install-Language, what if a user appends the -WhatIf switch. It can provide information early on stating:

  • The language was not found
  • Attempting to install the language
  • Language already exist

Details

No response

Proposed Content Type

Cmdlet Reference

Proposed Title

No response

Related Articles

https://github.com/MicrosoftDocs/windows-powershell-docs/blob/main/docset/winserver2019-ps/languagepackmanagement/Install-Language.md

P.S. I recognize this might not be the right repository.

@Gijsreyn Gijsreyn added issue-doc-idea Issue - request for new content needs-triage Waiting - Needs triage labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue-doc-idea Issue - request for new content needs-triage Waiting - Needs triage
Projects
None yet
Development

No branches or pull requests

1 participant