psakefile.ps1
Task default ` -depends UpdateReadMe Task InstallDocumentationModule ` -precondition { -not (Get-Module -ListAvailable UncommonSense.PowerShell.Documentation) } ` -action { Install-Module UncommonSense.PowerShell.Documentation -Force } Task ImportModule ` -action { Import-Module "$PSScriptRoot/UncommonSense.AH.psd1" -Force -PassThru } Task UpdateReadMe ` -depends InstallDocumentationModule, ImportModule ` -action { Get-Command -Module UncommonSense.AH | Convert-HelpToMarkDown -Title 'UncommonSense.AH' -Description 'PowerShell module for retrieving Albert Heijn store information' | Out-File -FilePath (Join-Path -Path $PSScriptRoot -ChildPath README.md) -Encoding utf8 } |