Files
tbd-station-14/Tools/patrons_pr.ps1
Pieter-Jan Briers 5c0c3d6381 Tiny PR script I need
2021-11-24 08:37:18 +01:00

9 lines
354 B
PowerShell

#!/usr/bin/env pwsh
param([string]$csvPath)
# Dumps Patreon's CSV download into the list for the progress report
# Have to trim patron names because apparently Patreon doesn't which is quite ridiculous.
Get-content $csvPath | ConvertFrom-Csv -Delimiter "," | select @{l="Name";e={$_.Name.Trim()}} | Sort-Object Name | Join-String Name -Separator ", "