-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Description
A couple of months ago I noticed that we have three versions of PowerShell notices.
First, my original proposal (modified from android/ commands that can only be run under adb) as back as #6621 (used in 31 commands and subsequent translations):
# Example-Command
> Command Description.
> Note: This command can only be used through PowerShell.The second, simplified version (5 commands and translations):
# Example-Command
> Command Description.
> This command can only be run under PowerShell.And the third one (5 commands and translations),
# Example-Command
> A PowerShell utility (or external module) to ...This relatively recent format has been placed in windows/add-appxpackage, windows/pswindowsupdate, windows/remove-appxpackage, and subsequent translations.
I think it's OK to document external PowerShell modules like the PSWindowsUpdate and to have clear separation between a tldr page for PowerShell Modules and Cmdlets (treated as "commands" as in here). But unlike Unix-based command-line utilities (like git) that prefers prefixes or subcommands (like git blame and git pull), PowerShell modules prefers to name Cmdlets with common suffixes (like Get-DataSet, Write-DataSet, Delete-DataSet).
So my question here is how to decide:
- Normalize PowerShell notices for pages documenting a specific Module?
- When the module name is long, should we refer to the shortened/common instead of long ones (like
DataModuleinstead ofCom.Example.DataModule)? How about alias pages?
- When the module name is long, should we refer to the shortened/common instead of long ones (like
- Normalize PowerShell notices for pages documenting a specific Cmdlet or Function?
- Every Cmdlet and Function is guaranteed to belong to a module, like
Invoke-WebRequestbelongs toMicrosoft.PowerShell.Utility.
- Every Cmdlet and Function is guaranteed to belong to a module, like
- Document conflicting commands between PowerShell and non-PowerShell modules?
- Very common example: PowerShell add aliases on top of classic Command Prompt commands (e.g.,
rmdirbecomes an alias ofRemove-Item). - Possible rare scenario: An optional PowerShell module adding aliases on top of classic Command Prompt commands.
- Or just move
powershellto a separate platform (see Let's document: PowerShell #6621)?
- Very common example: PowerShell add aliases on top of classic Command Prompt commands (e.g.,
- How to declare that a given Module has its Cmdlets?
- Some subcommands such as
Get-DataSethave their own usage documentation.
- Some subcommands such as