PoshCode Archive  Artifact [ab36ec8f80]

Artifact ab36ec8f80b0739bab879d6bcff777ea7afab552a27fec7c81e1f8fa38c4d777:

  • File PowerGrowl-Sample.ps1 — part of check-in [3eb649e7a4] at 2018-06-10 14:16:33 on branch trunk — PowerGrowl Sample Goes Here (user: Thom Lamb size: 818)

# encoding: ascii
# api: powershell
# title: PowerGrowl Sample
# description: PowerGrowl Sample Goes Here
# version: 0.1
# type: module
# author: Thom Lamb
# license: CC0
# x-poshcode-id: 6474
# x-archived: 2017-03-31T03:21:48
# x-published: 2017-08-13T03:29:00
#
#
# Working PowerGrowl Sample Goes Here
Clear-Host
$Location = $($Env:PSModulePath).Split(';')[0]

Import-Module $Location\PowerGrowl.psm1

Get-Module PowerGrowl | Format-List

#These lines are extracted from the PowerGrowl Module, however they are non-functional
#I'm hoping the module author will update this and contribute a working sample

Register-GrowlType -AppName "PoshTwitter" -Name "Greetings" `
    -Icon "C:\Users\username\Documents\WindowsPowerShell\Modules\default_icon.png"
Send-Growl "Greetings" "Hello World!"