diff --git a/backend/src/langs.ts b/backend/src/langs.ts index 047d438..be61c50 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -471,6 +471,16 @@ main = putStrLn "Hello, world!" `, hacks: ["ghci-config"], }, + hcl: { + aliases: ["tf", "terraform", "hashicorp", "hc"], + name: "HCL", + monacoLang: "plaintext", + main: "main.hcl", + compile: "cat main.hcl | yj -cj > main.json", + run: "cat main.json | jq .", + template: `output = "Hello, world!" +`, + }, ink: { name: "Ink", monacoLang: "plaintext", @@ -1064,6 +1074,16 @@ END lsp: "digestif", lspLang: "tex", template: `\\message{Hello, world!} +`, + }, + toml: { + aliases: ["tom"], + name: "TOML", + monacoLang: "plaintext", + main: "main.toml", + compile: "cat main.toml | yj -tj > main.json", + run: "cat main.json | jq .", + template: `output = "Hello, world!" `, }, typescript: { @@ -1157,6 +1177,16 @@ main: .data message: .string "Hello, world!\\n" +`, + }, + yaml: { + aliases: ["yml"], + name: "YAML", + monacoLang: "yaml", + main: "main.yaml", + compile: "cat main.yaml | yj -yj > main.json", + run: "cat main.json | jq .", + template: `output: "Hello, world!" `, }, zsh: { diff --git a/scripts/docker-install-phase3d.bash b/scripts/docker-install-phase3d.bash index 7766f19..5917be0 100755 --- a/scripts/docker-install-phase3d.bash +++ b/scripts/docker-install-phase3d.bash @@ -57,6 +57,9 @@ python3.7 # x86 clang +# YAML +jq + # Zsh zsh diff --git a/scripts/docker-install-phase5.bash b/scripts/docker-install-phase5.bash index 36c432a..329d5c6 100755 --- a/scripts/docker-install-phase5.bash +++ b/scripts/docker-install-phase5.bash @@ -65,6 +65,11 @@ gdown "https://drive.google.com/uc?export=download&id=1GPoR_ja4ns16KCamRgwB-JVag gdown "https://drive.google.com/uc?export=download&id=1qSxj8JjAeetAmNjUGayX0RBARgr5R4Ij" /opt/haskell/hoogle.hoo chmod +x /usr/bin/hie +# HCL/TOML/YAML +wget -nv https://github.com/sclevine/yj/releases/download/v4.0.0/yj-linux +chmod +x yj-linux +mv yj-linux /usr/bin/yj + # Ink wget -nv https://github.com/thesephist/ink/releases/download/v0.1.7/ink-linux wget -nv https://github.com/thesephist/ink/releases/download/v0.1.7/std.ink