advent-of-code/run.ps1

13 lines
326 B
PowerShell
Raw Normal View History

2023-12-01 09:41:13 +00:00
param(
[switch]$Test,
[PSDefaultValue()]
[Parameter(Mandatory = $false)]
$Year = 2023,
[Parameter(Mandatory = $true, Position = 0)]
$Day)
2022-12-13 10:18:31 +00:00
2022-12-19 21:17:29 +00:00
$folder = $Test ? "tests" : "inputs"
2023-12-10 09:09:12 +00:00
$env:AOC_VERBOSE = $VerbosePreference -eq "Continue"
2023-12-01 09:41:13 +00:00
Get-Content ".\$Year\$folder\day$Day.txt" | python ".\$Year\day$Day.py"