cmd/step: Fix calls to template parsing/loading functions

This commit is contained in:
Sasha Koshka 2024-12-11 02:43:46 -05:00
parent 09fa576873
commit f8b739ac4d

View File

@ -38,9 +38,9 @@ func main () {
// load and execute the document
var document *step.Document
if len(cmd.Args) > 0 {
document, err = environment.Parse(cmd.Args[0])
document, err = environment.Load(cmd.Args[0])
} else {
document, err = environment.ParseReader(".", os.Stdin)
document, err = environment.Parse(".", os.Stdin)
}
handleErr(cmd, err)
if flagMetadata.Value == "true" {