Yep.
This commit is contained in:
parent
9eb087be80
commit
dfef617a95
1 changed files with 1 additions and 3 deletions
|
@ -47,9 +47,7 @@ func defaultRun(cmd *cobra.Command, args []string) {
|
||||||
|
|
||||||
// outHandler takes a slice of byte slices, so append the Template
|
// outHandler takes a slice of byte slices, so append the Template
|
||||||
// execution output to a [][]byte before sending it to outHandler.
|
// execution output to a [][]byte before sending it to outHandler.
|
||||||
out := [][]byte{
|
out := [][]byte{generateTemplate(cmd.Name(), &data)}
|
||||||
0: generateTemplate(cmd.Name(), &data),
|
|
||||||
}
|
|
||||||
|
|
||||||
err := outHandler(out, &data)
|
err := outHandler(out, &data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue