grim/convey

d8fa98c62ada
Parents e577abd976e0
Children 750302e63d63
remove the stages from the list plans output
--- a/runners/listplans.go Mon Mar 02 21:44:20 2020 -0600
+++ b/runners/listplans.go Mon Mar 02 21:52:17 2020 -0600
@@ -28,20 +28,8 @@
// Run runs the ListPlans Runner.
func (l *ListPlans) Run(cfg *config.Config, plans []string, env []string, rt *runtime.Runtime) int {
- for planName, plan := range cfg.Plans {
+ for planName, _ := range cfg.Plans {
fmt.Printf("%s\n", planName)
- if len(plan.Stages) == 0 {
- fmt.Printf(" (no stages)\n")
- } else {
- for _, stage := range plan.Stages {
- disabled := ""
- if !stage.Enabled {
- disabled = " (disabled)"
- }
-
- fmt.Printf(" %s%s\n", stage.Name, disabled)
- }
- }
}
return 0