From 3d260e546a7c6fe38eda1e144fc582d4383de202 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Mon, 21 Aug 2023 16:22:29 -0500 Subject: [PATCH] Add environment init script. --- Taskfile.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Taskfile.yaml b/Taskfile.yaml index c3b7bca..443e678 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -28,6 +28,38 @@ tasks: silent: true cmds: ["task -l"] + init: + desc: Initialize workstation dependencies with Brew + cmds: + - brew install {{.DEPS}} {{.CLI_ARGS}} + preconditions: + - sh: command -v brew + msg: | + Homebrew is not installed. Using MacOS, Linux or WSL? + Head over to https://brew.sh to get up and running. + vars: + DEPS: >- + age + ansible + direnv + derailed/k9s/k9s + fluxcd/tap/flux + go-task/tap/go-task + helm + ipcalc + jq + kubernetes-cli + kustomize + pre-commit + prettier + sops + stern + terraform + tflint + weaveworks/tap/gitops + yamllint + yq + configure-venv: desc: Install or upgrade the Python virtual env cmds: