Skip to content

Commit

Permalink
Remove redundant log
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Sep 26, 2024
1 parent 7e7ebdf commit 174045e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions general/ai/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,12 @@ func HowCmd(c *cli.Context) error {
// Print the generated command within a styled table frame.
coreutils.PrintMessageInsideFrame(coreutils.PrintBoldTitle(llmAnswer), " ")

log.Output()
if err = sendFeedback(); err != nil {
return err
// If the response is a valid JFrog CLI command, ask the user for feedback.
if strings.HasPrefix(llmAnswer, "jf") {
log.Output()
if err = sendFeedback(); err != nil {
return err
}
}

log.Output("\n" + coreutils.PrintComment("-------------------") + "\n")
Expand Down

0 comments on commit 174045e

Please sign in to comment.