1
Fork 0
mirror of https://github.com/RGBCube/ThemeNix synced 2025-07-28 17:07:46 +00:00

Fix visualization script

This commit is contained in:
RGBCube 2024-05-08 14:08:23 +03:00
parent 9f6d2cda4b
commit c188d0d729
No known key found for this signature in database
2 changed files with 13 additions and 17 deletions

View file

@ -50,18 +50,18 @@ def main [] {
mkdir themes
ls base16-schemes
| filter {
let extension = ($in.name | path parse | get extension)
| filter {
let extension = ($in.name | path parse | get extension)
$extension == "yml" or $extension == "yaml"
}
| each { |it|
let new_path = "themes/" + ($it.name | path parse | get stem) + ".nix"
$extension == "yml" or $extension == "yaml"
}
| each { |it|
let new_path = "themes/" + ($it.name | path parse | get stem) + ".nix"
echo $"converting ($it.name) to ($new_path)..."
echo $"converting ($it.name) to ($new_path)..."
theme-to-nix (open $it.name) | save $new_path
}
theme-to-nix (open $it.name) | save $new_path
}
generate-valid-themes
}