From e466d2a33f54f4a4aee8bc25f0ccfb3915f559e1 Mon Sep 17 00:00:00 2001 From: "TekWize.ly" Date: Fri, 3 Jan 2020 09:27:46 -0800 Subject: [PATCH] Makes attributes available to command exports (#15) --- internal/ast/ast.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/ast/ast.go b/internal/ast/ast.go index e2c96e7..154e96e 100644 --- a/internal/ast/ast.go +++ b/internal/ast/ast.go @@ -156,16 +156,16 @@ func (a *Cmd) Apply(r *runfile.Runfile) { for key, value := range r.Scope.Vars { cmd.Scope.PutVar(key, value) } - // Config Environment - // - for _, varAssignment := range a.Config.Vars { - varAssignment.Apply(cmd.Scope) - } // Attrs // for k, v := range r.Scope.Attrs { cmd.Scope.PutAttr(k, v) } + // Config Environment + // + for _, varAssignment := range a.Config.Vars { + varAssignment.Apply(cmd.Scope) + } // Config // cmd.Config = &runfile.RunCmdConfig{}