Skip to content

Commit 50803b2

Browse files
committed
output json contents to stdout
Signed-off-by: Oleg <97077423+RobotSail@users.noreply.github.com>
1 parent 63d4c21 commit 50803b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/cmd/utils.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package cmd
22

33
import (
4+
"fmt"
45
"log"
56
"os"
6-
"strings"
77

88
"github.com/redhat-et/copilot-ops/pkg/ai"
99
"github.com/redhat-et/copilot-ops/pkg/ai/gpt3"
@@ -135,8 +135,8 @@ func PrintOrWriteOut(r *Request) error {
135135
if err != nil {
136136
return err
137137
}
138-
stringOut := strings.ReplaceAll(fmOutput, "\\n", "\n")
139-
log.Printf("\n%s\n", stringOut)
138+
// stringOut := strings.ReplaceAll(fmOutput, "\\n", "\n")
139+
fmt.Printf("%s\n", fmOutput)
140140

141141
return nil
142142
}

0 commit comments

Comments
 (0)