File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,12 @@ func HowCmd(c *cli.Context) error {
47
47
return cliutils .WrongNumberOfArgumentsHandler (c )
48
48
}
49
49
log .Output (coreutils .PrintTitle ("This AI-based interface converts your natural language inputs into fully functional JFrog CLI commands.\n " +
50
- "NOTE: This is a beta version and it supports mostly Artifactory and Xray commands.\n " ))
50
+ "NOTE: This is an experimental version and it supports mostly Artifactory and Xray commands.\n " ))
51
51
52
52
for {
53
53
var question string
54
54
scanner := bufio .NewScanner (os .Stdin )
55
- fmt .Print ("🐸 Your request: " )
55
+ fmt .Print ("🐸 Your request:\n " )
56
56
for {
57
57
// Ask the user for a question
58
58
scanner .Scan ()
@@ -62,13 +62,15 @@ func HowCmd(c *cli.Context) error {
62
62
break
63
63
}
64
64
}
65
+ fmt .Print ("\n 🤖 Generated command:\n " )
65
66
questionBody := QuestionBody {Question : question }
66
67
llmAnswer , err := askQuestion (questionBody )
67
68
if err != nil {
68
69
return err
69
70
}
71
+ log .Output (coreutils .PrintLink (llmAnswer ) + "\n " )
70
72
71
- log . Output ( "🤖 Generated command: " + coreutils . PrintLink ( llmAnswer ) + " \n " )
73
+ // Ask the user for feedback
72
74
feedback := FeedbackBody {QuestionBody : questionBody , LlmAnswer : llmAnswer }
73
75
feedback .getUserFeedback ()
74
76
if err = sendFeedback (feedback ); err != nil {
You can’t perform that action at this time.
0 commit comments