Skip to content

Commit

Permalink
Makes attributes available to command exports (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
TekWizely committed Jan 3, 2020
1 parent 14598e7 commit e466d2a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/ast/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit e466d2a

Please sign in to comment.