cmd/step: Fix calls to template parsing/loading functions
This commit is contained in:
		
							parent
							
								
									09fa576873
								
							
						
					
					
						commit
						f8b739ac4d
					
				@ -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" {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user