Skip to content

Commit

Permalink
(maint) add messages to package installers
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Jan 1, 2016
1 parent 7169a4e commit 9cccb49
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
$packageName = 'badpackage'
try {

try {

Write-Host "Ya!"
Write-Debug "A debug message"
Write-Output "This is $packageName v$packageVersion being installed to `n '$packageFolder'."
Write-Host "PowerShell Version is '$($PSVersionTable.PSVersion)' and CLR Version is '$($PSVersionTable.CLRVersion)'."
Write-Host "Execution Policy is '$(Get-ExecutionPolicy)'."
Write-Host "PSScriptRoot is '$PSScriptRoot'."
Write-Debug "A debug message."
Write-Verbose "Yo!"
Write-Warning "A warning!"
Write-Error "Oh no! An error"
throw "We had an error captain!"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
$packageName = 'badpackage'
try {

try {

Write-Host "Ya!"
Write-Debug "A debug message"
Write-Output "This is $packageName v$packageVersion being installed to `n '$packageFolder'."
Write-Host "PowerShell Version is '$($PSVersionTable.PSVersion)' and CLR Version is '$($PSVersionTable.CLRVersion)'."
Write-Host "Execution Policy is '$(Get-ExecutionPolicy)'."
Write-Host "PSScriptRoot is '$PSScriptRoot'."
Write-Debug "A debug message."
Write-Verbose "Yo!"
Write-Warning "A warning!"
Write-Error "Oh no! An error"
throw "We had an error captain!"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
"simple file" | Out-File "$toolsDir\simplefile.txt" -force

Write-Output "$env:PackageName $env:PackageVersion Installed"
Write-Output "This is $packageName v$packageVersion being installed to `n $packageFolder"
Write-Host "Ya!"
Write-Debug "A debug message"
Write-Verbose "Yo!"
Write-Warning "A warning!"

Write-Output "$packageName v$packageVersion has been installed to `n $packageFolder"

0 comments on commit 9cccb49

Please sign in to comment.