mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-11 21:59:11 +02:00
Added comment-based help
This commit is contained in:
@ -1,12 +1,13 @@
|
||||
#!/snap/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./write-vertical.ps1 [<text>]
|
||||
.DESCRIPTION writes the given text in vertical direction
|
||||
.LINK https://github.com/fleschutz/PowerShell
|
||||
.NOTES Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
# Syntax: ./write-vertical.ps1 [<text>]
|
||||
# Description: writes the given text in vertical direction
|
||||
# Author: Markus Fleschutz
|
||||
# Source: github.com/fleschutz/PowerShell
|
||||
# License: CC0
|
||||
param([string]$Text = "")
|
||||
|
||||
param([String]$Text)
|
||||
try {
|
||||
if ($Text -eq "" ) {
|
||||
[String]$Text = read-host "Enter text to write"
|
||||
|
Reference in New Issue
Block a user