task icon indicating copy to clipboard operation
task copied to clipboard

Declaration order matters when nesting dynamic vars

Open sedyh opened this issue 2 months ago • 1 comments

As far as I know you can nest dynamic variables in each other, but this behavior is depends on declaration order. Looks like a bit confusing. I didn't find this info in docs.

vars:
  A:
    sh: echo "a {{.B}}"
  B:
    sh: echo "b {{.C}}"
  C:
    sh: echo "c"
cmd
vars:
  C:
    sh: echo "c"
  B:
    sh: echo "b {{.C}}"
  A:
    sh: echo "a {{.B}}"
cmd a b c

sedyh avatar Apr 27 '24 16:04 sedyh