chezmoi: move unrelated scripts out

This commit is contained in:
js0ny 2025-09-27 15:34:19 +01:00
parent 67a78879db
commit fff9275372
7 changed files with 1 additions and 1 deletions

17
scripts/Scripts.ps1 Normal file
View file

@ -0,0 +1,17 @@
function CsvToMarkdown {
param( [string]$csv)
$counter = 0
$column = $csv.Split("`n")[0].Split(",").Length
$aHeader = " --- |"
$header = "|" + $aHeader * $column
$csv.replace(",", " | ").Split("`n") | ForEach-Object {
if ($counter -eq 0) {
Write-Output "| $_ |"
$counter++
Write-Output $header
}
else {
Write-Output "| $_ |"
}
}
}