Refactor op/script/component loading and spec validation

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
Solomon Hykes
2021-01-24 12:54:55 -08:00
parent bbe16283ab
commit e10025d688
19 changed files with 269 additions and 177 deletions

View File

@@ -114,7 +114,7 @@ func (cfg *ClientConfig) Finalize(ctx context.Context) (map[string]string, error
return nil, errors.Wrap(err, "invalid client config")
}
// Finalize boot script
boot, err := v.Get("boot").Script()
boot, err := NewScript(v.Get("boot"))
if err != nil {
return nil, errors.Wrap(err, "invalid env boot script")
}