mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 17:38:19 +02: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