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

[question] Handling of PowerShell examples for non-Windows platforms #1941

Closed
BernieWhite opened this issue Dec 11, 2017 · 5 comments
Closed

Comments

@BernieWhite
Copy link
Contributor

This is more of a discussion topic then an issue.

Working from the platyPS side looking at PowerShell/platyPS#294 (related to #1511). We are discussing the PS C:\> convention in relation to other platforms outside of Windows.

Based on the information in #1511 and the style guide there is direction not to include the prefix PS C:\> within PowerShell code examples for online help.

  • Is this the direction or intent for examples within the PowerShell help system?
  • Is there a reliance on the PowerShell help system to automatically add PS C:\> to examples when invoked?
  • How are other platforms represented? or is the PS C:\> prefix used regardless of operating system?

Thanks :)

@BernieWhite
Copy link
Contributor Author

@zjalexander Thoughts?

@markekraus
Copy link
Contributor

not that this justifies the continued use of PS C:\> in the documentation, but, it is possible to have a C: PSDrive on non-windows platorms:

New-PSDrive -Name c -PSProvider FileSystem -Root ~/
Set-Location c:\

It will display as PS c:/>.

@sdwheeler
Copy link
Contributor

@BernieWhite @markekraus - We just published a new addendum to the style guide https://github.com/PowerShell/PowerShell-Docs/blob/staging/contributing/FORMATTING-CODE.md

Please read this.

@Greg-Smulko
Copy link

@sdwheeler
Copy link
Contributor

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

No branches or pull requests

4 participants