advent-of-code/run.ps1
Mikael CAPELLE e991cd8b04 2023: Day 1.
2023-12-01 10:41:13 +01:00

12 lines
273 B
PowerShell

param(
[switch]$Test,
[PSDefaultValue()]
[Parameter(Mandatory = $false)]
$Year = 2023,
[Parameter(Mandatory = $true, Position = 0)]
$Day)
$folder = $Test ? "tests" : "inputs"
Get-Content ".\$Year\$folder\day$Day.txt" | python ".\$Year\day$Day.py"