-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Let's document: PowerShell #6621
Comments
Okay, I've seen that the |
Hey there! Thanks for opening this issue. Hmm, I think we want a few opinions on this. It would be easy if powershell was windows-specific (though I can imagine Windows accounts for the majority of powershell usage anyway), but as you say powershell is cross-platform. Perhaps documenting in Let's wait for some more opinions from people on this before making a decision. |
We probably won't have any name collisions, but even though it's available on all platforms it will be used on Windows most of the time. Not directly comparable, but still: we also don't put Linux commands under common because it's available through WSL. |
I was thinking to simply put all PowerShell documentation into
or (Windows Server-specific)
|
I don't think we should really add a new platform for PowerShell. I think putting all PowerShell pages into |
Yeah, I agree @marchersimon. The |
Ref "This command works only on Windows", I would suggest that the better solution here would be a platform-specific copy of the page in the respective platform folder. For example, if |
I'd love to help with this since PowerShell is my primary shell. I had a question about documentation though. For commandlets like |
There is a standard template for writing alias documentation, see https://github.com/tldr-pages/tldr/blob/main/contributing-guides/translation-templates/alias-pages.md. But there are some edge cases like For Command Prompt aliases in PowerShell, as long as the PowerShell version accepts the traditional Command Prompt parameters, I think it’s OK to add something like:
|
#11227 has implemented the issues discussed here. However, it seems that #11298 has put PowerShell commands in the wrong place ( /cc @kbdharun, @sebastiaanspeck? |
It's intentional I think, some powershell commands are cross platform, whereas most are Windows specific. |
Ahhh okayt @kbdharun. Thanks for the clarification. So long as PowerShell commands are clearly labelled, I see no issue with this. In which case, I'm going to close this issue for now given we've all agreed. I'd suggest that any lists of PowerShell commands to document should be a separate issue to keep them clean. We can always re-open if there's more to discuss. |
Sorry for the bad timing (it's the first day of Hacktoberfest 2021 so yeah), but I think documenting tldr pages for the
Windowscross-platform PowerShell could be a great idea.No, not the tldr page for
windows/powershell
, but all the PowerShell cmdlets likeGet-Help
,Invoke-WebRequest
,Get-StartApps
and so on.These cmdlets uses a combination of
kebab-case
and(Upper) CamelCase
, while according to the tldr-page guidelines all commands should be lowercase. So this could be a concern for contributors and clients.Furthermore, some PowerShell cmdlets are only available for Windows, making the page structure slightly complicated. For example,
curl
often redirects toInvoke-WebRequest
when used in Windows where the actualcurl
is not installed. Note that bothcurl
andInvoke-WebRequest
are completely different commands with different parameters and options.The text was updated successfully, but these errors were encountered: