Skip to content

Commit

Permalink
Update root.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Nov 5, 2021
1 parent 3ffa875 commit ea4c804
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ var rootCmd = &cobra.Command{

var output = []byte("")

hasInputsData, _, _ := HasBytesInBetween(
hasInputsData, inputStartIndex, inputEndIndex := HasBytesInBetween(
input,
[]byte(InputsHeader),
[]byte(inputAutoDocEnd),
Expand Down Expand Up @@ -183,6 +183,7 @@ var rootCmd = &cobra.Command{
} else {
outputsStr := fmt.Sprintf("%s\n%v\n", OutputsHeader, outputTableOutput.String())
output = bytes.Replace(output, []byte(OutputsHeader), []byte(outputsStr), -1)
fmt.Println(output)
}

if len(output) > 0 {
Expand Down

0 comments on commit ea4c804

Please sign in to comment.