metatypedev / ghjk

ghjk is a programmable runtime manager and an attempt at a successor for asdf.
Mozilla Public License 2.0
7 stars 1 forks source link

Dynamic variables for envs #80

Closed Yohe-Am closed 1 month ago

Yohe-Am commented 4 months ago

Envs provision that contains a task to be invoked and whose stdout will be used as the variable's content. A nice syntax to use will then be...

env("oci", { vars: { WAN: () => `whassup doc` } })
  .var("TEW", async () => Promise.resolve(`ehhh`))
  .var("TREE", ($) => $`echo "howya doin doc"`)
linear[bot] commented 4 months ago

MET-531 Dynamic variables for envs