Skip to content

Commit

Permalink
Update deps (#2557)
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 authored May 22, 2024
1 parent f639b66 commit 96115f4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion general/ai/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ func HowCmd(c *cli.Context) error {
if err != nil {
return err
}
if strings.ToLower(llmAnswer) == "i dont know" {
log.Output("The current version of the AI model does not support this type of command yet.")
return nil
}
log.Output("AI generated JFrog CLI command:")
err = coreutils.PrintTable("", "", coreutils.PrintTitle(llmAnswer), false)
if err != nil {
Expand Down Expand Up @@ -123,7 +127,7 @@ func sendRequestToCliAiServer(content interface{}, apiCommand ApiCommand) (respo
if errorutils.CheckError(err) != nil {
return
}
response = string(body)
response = strings.TrimSpace(string(body))
}
return
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/agnivade/levenshtein v1.1.1
github.com/buger/jsonparser v1.1.1
github.com/go-git/go-git/v5 v5.12.0
github.com/gocarina/gocsv v0.0.0-20231116093920-b87c2d0e983a
github.com/gocarina/gocsv v0.0.0-20240520201108-78e41c74b4b1
github.com/jfrog/archiver/v3 v3.6.0
github.com/jfrog/build-info-go v1.9.26
github.com/jfrog/gofrog v1.7.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ=
github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
github.com/gocarina/gocsv v0.0.0-20231116093920-b87c2d0e983a h1:RYfmiM0zluBJOiPDJseKLEN4BapJ42uSi9SZBQ2YyiA=
github.com/gocarina/gocsv v0.0.0-20231116093920-b87c2d0e983a/go.mod h1:5YoVOkjYAQumqlV356Hj3xeYh4BdZuLE0/nRkf2NKkI=
github.com/gocarina/gocsv v0.0.0-20240520201108-78e41c74b4b1 h1:FWNFq4fM1wPfcK40yHE5UO3RUdSNPaBC+j3PokzA6OQ=
github.com/gocarina/gocsv v0.0.0-20240520201108-78e41c74b4b1/go.mod h1:5YoVOkjYAQumqlV356Hj3xeYh4BdZuLE0/nRkf2NKkI=
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg=
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func setUberTraceIdToken() error {
return err
}
httpclient.SetUberTraceIdToken(traceID)
clientlog.Debug("Trace ID for JFrog Platform logs: ", traceID)
clientlog.Debug("Trace ID for JFrog Platform logs:", traceID)
return nil
}

Expand Down

0 comments on commit 96115f4

Please sign in to comment.