Dotfiles/modules/gh-cli.lua
Ade Attwood 77e5752cd8 chore(core): add some more modules in configz
Start building out the config and modules / libs that will make up the
dotfiles. This will start to take over the puppet and eventually be the
only things getting use going forward.
2023-06-02 17:58:39 +01:00

14 lines
512 B
Lua

local v_cache = require('lib.v-cache')
if v_cache.is_installed("gh-cli", "v2.29.0") then
return
end
configz.download( "/tmp/gh-cli.tar.gz", {
url = "https://github.com/cli/cli/releases/download/v2.29.0/gh_2.29.0_linux_amd64.tar.gz",
sha256 = "9fe05f43a11a7bf8eacf731422452d1997e6708d4160ef0efcb13c103320390e"
})
configz.run("cd /tmp; tar -xzf /tmp/gh-cli.tar.gz")
configz.file(os.getenv("HOME") .. "/.local/bin/gh", { source = "/tmp/gh_2.29.0_linux_amd64/bin/gh" })
v_cache.install("gh-cli", "v2.29.0")