From 922338454292938acaadec626729078b8b9164bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Hedenstro=CC=88m?= <erik@hedenstroem.com> Date: Mon, 2 Oct 2023 17:48:56 +0200 Subject: [PATCH] Added VSCode tasks --- .vscode/tasks.json | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..a2883d2 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,44 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Install locally", + "type": "shell", + "command": "go install", + "group": { + "kind": "build", + "isDefault": true + }, + "presentation": { + "reveal": "silent" + } + }, + { + "label": "Setup zsh completion", + "dependsOn": ["Install locally"], + "type": "shell", + "command": "mkdir -p $HOME/.zsh/completions && vaultenv completion zsh > $HOME/.zsh/completions/_vaultenv && rm -f $ZSH_COMPDUMP", + "group": { + "kind": "build", + "isDefault": false + }, + "presentation": { + "reveal": "silent" + } + }, + { + "label": "Publish fig spec", + "type": "shell", + "command": "go run main.go generate-fig-spec > .fig-spec.ts && npx --yes @fig/publish-spec -n vaultenv -p .fig-spec.ts && rm -f .fig-spec.ts", + "group": { + "kind": "build", + "isDefault": false + }, + "presentation": { + "reveal": "silent" + } + }, + ] +} -- GitLab