dagger do
action options flags
Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
21
plan/plan.go
21
plan/plan.go
@@ -191,18 +191,20 @@ func (p *Plan) fillAction() {
|
||||
noOpRunner,
|
||||
)
|
||||
|
||||
p.action = &Action{
|
||||
Name: ActionSelector.String(),
|
||||
Hidden: false,
|
||||
Path: cue.MakePath(ActionSelector),
|
||||
Children: []*Action{},
|
||||
}
|
||||
|
||||
actions := p.source.LookupPath(cue.MakePath(ActionSelector))
|
||||
actionsPath := cue.MakePath(ActionSelector)
|
||||
actions := p.source.LookupPath(actionsPath)
|
||||
if !actions.Exists() {
|
||||
return
|
||||
}
|
||||
p.action.Documentation = actions.DocSummary()
|
||||
|
||||
p.action = &Action{
|
||||
Name: ActionSelector.String(),
|
||||
Documentation: actions.DocSummary(),
|
||||
Hidden: false,
|
||||
Path: actionsPath,
|
||||
Children: []*Action{},
|
||||
Value: p.Source().LookupPath(actionsPath),
|
||||
}
|
||||
|
||||
tasks := flow.Tasks()
|
||||
|
||||
@@ -221,6 +223,7 @@ func (p *Plan) fillAction() {
|
||||
Path: path,
|
||||
Documentation: v.DocSummary(),
|
||||
Children: []*Action{},
|
||||
Value: v,
|
||||
}
|
||||
prevAction.AddChild(a)
|
||||
}
|
||||
|
Reference in New Issue
Block a user