Skip to content

Commit 96115f4

Browse files
authored
Update deps (#2557)
1 parent f639b66 commit 96115f4

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

general/ai/cli.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ func HowCmd(c *cli.Context) error {
5050
if err != nil {
5151
return err
5252
}
53+
if strings.ToLower(llmAnswer) == "i dont know" {
54+
log.Output("The current version of the AI model does not support this type of command yet.")
55+
return nil
56+
}
5357
log.Output("AI generated JFrog CLI command:")
5458
err = coreutils.PrintTable("", "", coreutils.PrintTitle(llmAnswer), false)
5559
if err != nil {
@@ -123,7 +127,7 @@ func sendRequestToCliAiServer(content interface{}, apiCommand ApiCommand) (respo
123127
if errorutils.CheckError(err) != nil {
124128
return
125129
}
126-
response = string(body)
130+
response = strings.TrimSpace(string(body))
127131
}
128132
return
129133
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/agnivade/levenshtein v1.1.1
77
github.com/buger/jsonparser v1.1.1
88
github.com/go-git/go-git/v5 v5.12.0
9-
github.com/gocarina/gocsv v0.0.0-20231116093920-b87c2d0e983a
9+
github.com/gocarina/gocsv v0.0.0-20240520201108-78e41c74b4b1
1010
github.com/jfrog/archiver/v3 v3.6.0
1111
github.com/jfrog/build-info-go v1.9.26
1212
github.com/jfrog/gofrog v1.7.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ=
107107
github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
108108
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
109109
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
110-
github.com/gocarina/gocsv v0.0.0-20231116093920-b87c2d0e983a h1:RYfmiM0zluBJOiPDJseKLEN4BapJ42uSi9SZBQ2YyiA=
111-
github.com/gocarina/gocsv v0.0.0-20231116093920-b87c2d0e983a/go.mod h1:5YoVOkjYAQumqlV356Hj3xeYh4BdZuLE0/nRkf2NKkI=
110+
github.com/gocarina/gocsv v0.0.0-20240520201108-78e41c74b4b1 h1:FWNFq4fM1wPfcK40yHE5UO3RUdSNPaBC+j3PokzA6OQ=
111+
github.com/gocarina/gocsv v0.0.0-20240520201108-78e41c74b4b1/go.mod h1:5YoVOkjYAQumqlV356Hj3xeYh4BdZuLE0/nRkf2NKkI=
112112
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
113113
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
114114
github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg=

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func setUberTraceIdToken() error {
140140
return err
141141
}
142142
httpclient.SetUberTraceIdToken(traceID)
143-
clientlog.Debug("Trace ID for JFrog Platform logs: ", traceID)
143+
clientlog.Debug("Trace ID for JFrog Platform logs:", traceID)
144144
return nil
145145
}
146146

0 commit comments

Comments
 (0)