2020-06-14 15:15:07 +02:00
|
|
|
#!/usr/bin/env pwsh
|
|
|
|
|
|
|
|
|
|
param([string]$csvPath)
|
|
|
|
|
|
2020-11-27 16:24:19 +01:00
|
|
|
# Dumps Patreon's CSV download into a YAML file the game reads.
|
2020-06-14 15:15:07 +02:00
|
|
|
|
|
|
|
|
# Have to trim patron names because apparently Patreon doesn't which is quite ridiculous.
|
2020-11-27 16:24:19 +01:00
|
|
|
Get-content $csvPath | ConvertFrom-Csv -Delimiter "," | select @{l="Name";e={$_.Name.Trim()}},Tier | ConvertTo-Yaml
|