Skip to content

Commit

Permalink
metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Sep 5, 2024
1 parent 25f656b commit b7ea884
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions general/ai/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ func askQuestion(question string) (response string, err error) {
return sendRestAPI(ask, QuestionBody{Question: question})
}

type FeedbackBody struct {
IsGoodResponse bool `json:"is_good_response"`
}

func sendFeedback() (err error) {
isGoodResponse, err := getUserFeedback()
if err != nil {
Expand Down Expand Up @@ -112,10 +116,6 @@ func getUserFeedback() (bool, error) {
return selected == 0, nil
}

type FeedbackBody struct {
IsGoodResponse bool `json:"IsGoodResponse"`
}

func sendRestAPI(apiType ApiType, content interface{}) (response string, err error) {
contentBytes, err := json.Marshal(content)
if errorutils.CheckError(err) != nil {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/jfrog/jfrog-cli

go 1.22.3
go 1.22.6

replace (
// Should not be updated to 0.2.6 due to a bug (https://github.com/jfrog/jfrog-cli-core/pull/372)
Expand Down

0 comments on commit b7ea884

Please sign in to comment.