-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from claudiospizzi/dev
Release 1.2.0
- Loading branch information
Showing
29 changed files
with
398 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<# | ||
.SYNOPSIS | ||
Shows an error message on the PowerShell host. | ||
.DESCRIPTION | ||
Uses the internal .NET method WriteErrorLine() of the host UI class to show | ||
the error message on the console. | ||
.PARAMETER Message | ||
The error message. | ||
.EXAMPLE | ||
C:\> Show-ErrorMessage -Message 'My Error Message' | ||
Show the error message. | ||
.NOTES | ||
Author : Claudio Spizzi | ||
License : MIT License | ||
.LINK | ||
https://github.com/claudiospizzi/ScriptLogger | ||
#> | ||
|
||
function Show-ErrorMessage | ||
{ | ||
param | ||
( | ||
[Parameter(Mandatory=$true)] | ||
[String] $Message | ||
) | ||
|
||
$Host.UI.WriteErrorLine("ERROR: $Message") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<# | ||
.SYNOPSIS | ||
Shows an information message on the PowerShell host. | ||
.DESCRIPTION | ||
Uses the internal .NET method () of the host UI class to show | ||
the information message on the console. | ||
.PARAMETER Message | ||
The information message. | ||
.EXAMPLE | ||
C:\> Show-InformationMessage -Message 'My Information Message' | ||
Show the information message. | ||
.NOTES | ||
Author : Claudio Spizzi | ||
License : MIT License | ||
.LINK | ||
https://github.com/claudiospizzi/ScriptLogger | ||
#> | ||
|
||
function Show-InformationMessage | ||
{ | ||
param | ||
( | ||
[Parameter(Mandatory=$true)] | ||
[String] $Message | ||
) | ||
|
||
$Host.UI.WriteLine("INFORMATION: $Message") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<# | ||
.SYNOPSIS | ||
Shows a verbose message on the PowerShell host. | ||
.DESCRIPTION | ||
Uses the internal .NET method WriteVerboseLine() of the host UI class to | ||
show the verbose message on the console. | ||
.PARAMETER Message | ||
The verbose message. | ||
.EXAMPLE | ||
C:\> Show-VerboseMessage -Message 'My Verbose Message' | ||
Show the verbose message. | ||
.NOTES | ||
Author : Claudio Spizzi | ||
License : MIT License | ||
.LINK | ||
https://github.com/claudiospizzi/ScriptLogger | ||
#> | ||
|
||
function Show-VerboseMessage | ||
{ | ||
param | ||
( | ||
[Parameter(Mandatory=$true)] | ||
[String] $Message | ||
) | ||
|
||
$Host.UI.WriteVerboseLine($Message) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<# | ||
.SYNOPSIS | ||
Shows a warning message on the PowerShell host. | ||
.DESCRIPTION | ||
Uses the internal .NET method WriteWarningLine() of the host UI class to | ||
show the warning message on the console. | ||
.PARAMETER Message | ||
The warning message. | ||
.EXAMPLE | ||
C:\> Show-WarningMessage -Message 'My Warning Message' | ||
Show the warning message. | ||
.NOTES | ||
Author : Claudio Spizzi | ||
License : MIT License | ||
.LINK | ||
https://github.com/claudiospizzi/ScriptLogger | ||
#> | ||
|
||
function Show-WarningMessage | ||
{ | ||
param | ||
( | ||
[Parameter(Mandatory=$true)] | ||
[String] $Message | ||
) | ||
|
||
$Host.UI.WriteWarningLine($Message) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.