use right Name

pull/3143/head
Rajat Jindal 8 years ago
parent dc1b3c92e4
commit 418a8badb4

@ -262,10 +262,10 @@ func (t *templateCmd) run(cmd *cobra.Command, args []string) error {
} }
if t.outputDir != "" { if t.outputDir != "" {
writeToFile(t.outputDir, m.name, data) writeToFile(t.outputDir, m.Name, data)
continue continue
} }
fmt.Printf("---\n# Source: %s\n", m.name) fmt.Printf("---\n# Source: %s\n", m.Name)
fmt.Printf(data) fmt.Printf(data)
} }
return nil return nil

Loading…
Cancel
Save