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

windows/*: add PowerShell commands and aliases #11227

Merged
merged 4 commits into from
Oct 25, 2023

Conversation

reinhart1010
Copy link
Collaborator

  • The page(s) are in the correct platform directories: common, linux, osx, windows, sunos, android, etc.
  • The page(s) have at most 8 examples.
  • The page description(s) have links to documentation or a homepage.
  • The page(s) follow the content guidelines.
  • The PR title conforms to the recommended templates.
  • Version of the command being documented (if known):

This PR adds new PowerShell commands and aliases. Part of #6621.

  • $PSVersionTable - Get the currently-installed PowerShell version
  • Clear-Host with aliases clear and cls - Clear the console screen
  • Clear-RecycleBin - Clear the Recycle Bin
  • Get-Alias with alias gal - Get the command or cmdlet aliases
  • Get-Help - View documentation for cmdlets (and only works for PowerShell-designed cmdlets, instead of all commands like man)
  • New-Item with alias ni - Create new file, directory, symbolic links, hard links, junctions, and Windows Registry keys (similar to touch)
  • Remove-Item with aliases del, rd, ri, rm, and rmdir - Remove files, directories, and Windows Registry keys

This PR also adds More Information link to the Invoke-WebRequest aliases curl, iwr, and wget.

@github-actions github-actions bot added new command Issues requesting creation of a new page or PRs adding a new page for a command. page edit Changes to an existing page(s). labels Oct 25, 2023
@tldr-bot
Copy link

The build for this PR failed with the following error(s):

pages/windows/$psversiontable.md:1: TLDR013 Title should be alphanumeric with dashes, underscores or spaces
pages/windows/clear-host.md:
Error: Parse error on line 5:
...ell.core/clear-host>- Clear the screen
-----------------------^
Expecting 'END_INFORMATION_LINK_URL', got 'NEWLINE'
pages/windows/clear-host.md:5: TLDR011 Page never contains more than a single empty line
pages/windows/new-item.md:
Error: Parse error on line 33:
...h\to\registry_key}}` -Value {{{value}}`
-----------------------^
Expecting 'NEWLINE', 'TEXT', 'DASH', 'BACKTICK', got 'COMMAND_TEXT'
pages/windows/new-item.md:3: TLDR004 Command descriptions should end in a period
pages/windows/new-item.md:5: TLDR017 Information link should be surrounded with angle brackets
pages/windows/remove-item.md:5: TLDR017 Information link should be surrounded with angle brackets
pages.en/windows/$psversiontable.md:1: TLDR013 Title should be alphanumeric with dashes, underscores or spaces
pages.en/windows/clear-host.md:
Error: Parse error on line 5:
...ell.core/clear-host>- Clear the screen
-----------------------^
Expecting 'END_INFORMATION_LINK_URL', got 'NEWLINE'
pages.en/windows/clear-host.md:5: TLDR011 Page never contains more than a single empty line
pages.en/windows/new-item.md:
Error: Parse error on line 33:
...h\to\registry_key}}` -Value {{{value}}`
-----------------------^
Expecting 'NEWLINE', 'TEXT', 'DASH', 'BACKTICK', got 'COMMAND_TEXT'
pages.en/windows/new-item.md:5: TLDR017 Information link should be surrounded with angle brackets
pages.en/windows/remove-item.md:5: TLDR017 Information link should be surrounded with angle brackets

Please fix the error(s) and push again.

@tldr-bot
Copy link

The build for this PR failed with the following error(s):

pages/windows/$psversiontable.md:1: TLDR013 Title should be alphanumeric with dashes, underscores or spaces
pages/windows/remove-item.md:
Error: Parse error on line 5:
...agement/remove-item>- Remove specific 
-----------------------^
Expecting 'END_INFORMATION_LINK_URL', got 'NEWLINE'
pages/windows/remove-item.md:5: TLDR011 Page never contains more than a single empty line
pages.en/windows/$psversiontable.md:1: TLDR013 Title should be alphanumeric with dashes, underscores or spaces
pages.en/windows/remove-item.md:
Error: Parse error on line 5:
...agement/remove-item>- Remove specific 
-----------------------^
Expecting 'END_INFORMATION_LINK_URL', got 'NEWLINE'
pages.en/windows/remove-item.md:5: TLDR011 Page never contains more than a single empty line

Please fix the error(s) and push again.

Copy link
Member

@Magrid0 Magrid0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new command Issues requesting creation of a new page or PRs adding a new page for a command. page edit Changes to an existing page(s).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants