Examples/09-Daily-Workflow.ps1
|
[CmdletBinding()] param( [string]$ProjectRoot = (Split-Path -Parent $PSScriptRoot), [string]$Message = 'daily checkpoint' ) Set-StrictMode -Version Latest $ErrorActionPreference = 'Stop' Set-Location -LiteralPath $ProjectRoot Import-Module (Join-Path $ProjectRoot 'GitEasy.psd1') -Force Write-Host "1. Current changes" -ForegroundColor Cyan Find-CodeChange | Format-List Write-Host "2. Current remote" -ForegroundColor Cyan Show-Remote | Format-List Write-Host "3. Login test" -ForegroundColor Cyan Test-Login | Format-List Write-Host "4. Save local checkpoint" -ForegroundColor Cyan Save-Work $Message -NoPush Write-Host "5. Recent history" -ForegroundColor Cyan Show-History -Count 5 | Format-Table -AutoSize |