mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-14 03:54:46 +01:00
Add list-verbs.ps1
This commit is contained in:
parent
ccdd85c14d
commit
afb0e2b9e4
25
Scripts/list-verbs.ps1
Normal file
25
Scripts/list-verbs.ps1
Normal file
@ -0,0 +1,25 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Lists verbs
|
||||
.DESCRIPTION
|
||||
This PowerShell script lists all allowed verbs.
|
||||
.EXAMPLE
|
||||
PS> ./list-verbs
|
||||
|
||||
Verb Group
|
||||
---- -----
|
||||
Add Common
|
||||
...
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
Get-Verb | Sort-Object -Property Verb
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user