mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-28 16:48:39 +01:00
Update write-code.ps1
This commit is contained in:
parent
8fd6cdaf3b
commit
7bf107cc0b
@ -1,4 +1,11 @@
|
|||||||
<#
|
<#PSScriptInfo
|
||||||
|
.VERSION 1.0
|
||||||
|
.GUID 3bb10ee7-38c1-41b9-88ea-16899164fc19
|
||||||
|
.AUTHOR Markus Fleschutz
|
||||||
|
.COPYRIGHT CC0
|
||||||
|
#>
|
||||||
|
|
||||||
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Writes code
|
Writes code
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
@ -11,8 +18,6 @@
|
|||||||
PS> ./write-code
|
PS> ./write-code
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
#>
|
||||||
|
|
||||||
param([string]$color = "green", [int]$speed = 500) # milliseconds
|
param([string]$color = "green", [int]$speed = 500) # milliseconds
|
||||||
@ -58,4 +63,4 @@ try {
|
|||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user