This commit is contained in:
Patrick O'brien 2016-03-02 01:15:32 +10:00
parent 9eb087be80
commit dfef617a95

View file

@ -47,9 +47,7 @@ func defaultRun(cmd *cobra.Command, args []string) {
// outHandler takes a slice of byte slices, so append the Template
// execution output to a [][]byte before sending it to outHandler.
out := [][]byte{
0: generateTemplate(cmd.Name(), &data),
}
out := [][]byte{generateTemplate(cmd.Name(), &data)}
err := outHandler(out, &data)
if err != nil {