Skip to content

Commit

Permalink
Fix npm script
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed May 29, 2024
1 parent 1da950b commit 1060a3c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions general/ai/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,8 @@ func (fb *FeedbackBody) getUserFeedback() {
if !fb.IsAccurate {
scanner := bufio.NewScanner(os.Stdin)
fmt.Print("Please provide the exact command you expected (Example: 'jf rt u ...'): ")
for {
// Ask the user for a question
scanner.Scan()
fb.ExpectedAnswer = scanner.Text()
if fb.ExpectedAnswer != "" {
// If the user entered a question, break the loop
break
}
}
scanner.Scan()
fb.ExpectedAnswer = scanner.Text()
}
}

Expand Down

0 comments on commit 1060a3c

Please sign in to comment.