--- a/runner/cmd.go Thu Dec 23 15:17:04 2021 -0600
+++ b/runner/cmd.go Thu Dec 23 16:07:04 2021 -0600
@@ -76,34 +76,43 @@
-func (c *RunnerCmd) Run(g *globals.Globals) error {
- logging.Setup(g.Color, g.Verbose)
+func (c *RunnerCmd) loadConfig() (string, *config.Config, error) { cfg, err := config.LoadFile(c.ConfigFile)
- return fmt.Errorf("config is invalid: %s", err)
+ return "", nil, fmt.Errorf("config is invalid: %s", err) err = cfg.HasPlans(c.Plans)
configPath, _ := filepath.Split(c.ConfigFile)
+ return configPath, cfg, nil +func (c *RunnerCmd) Run(g *globals.Globals) error { + logging.Setup(g.Color, g.Verbose) + configPath, cfg, err := c.loadConfig() rt := c.Runtime(configPath, cfg)