Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 29 additions & 10 deletions cmd/about.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,36 @@ import (
"io"
)

// About struct
type About struct {
Commit string `json:"commit"`
DeploymentID string `json:"deploymentId"`
LatestVersion any `json:"latestVersion"`
License string `json:"license"`
Mode string `json:"mode"`
Staging string `json:"staging"`
Store string `json:"store"`
GrpcPort uint16 `json:"grpcPort"`
UpdateAvailable bool `json:"updateAvailable"`
Version string `json:"version"`
Version string `json:"version"`
UIVersion string `json:"uiVersion"`
Commit string `json:"commit"`
DeploymentID string `json:"deploymentId"`
UpdateAvailable bool `json:"updateAvailable"`
LatestVersion string `json:"latestVersion"`
LLMActive bool `json:"llmActive"`
LLMProvider string `json:"llmProvider"`
OIDCActive bool `json:"oidcActive"`
License string `json:"license"`
Mode string `json:"mode"`
Staging string `json:"staging"`
HotTier string `json:"hotTier"`
GRPCPort int `json:"grpcPort"`
Store Store `json:"store"`
Analytics Analytics `json:"analytics"`
QueryEngine string `json:"queryEngine"`
}

// Store struct
type Store struct {
Type string `json:"type"`
Path string `json:"path"`
}

// Analytics struct
type Analytics struct {
ClarityTag string `json:"clarityTag"`
}

func FetchAbout(client *HTTPClient) (about About, err error) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/tail.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func tail(profile config.Profile, stream string) error {
if err != nil {
return err
}
url := profile.GrpcAddr(fmt.Sprint(about.GrpcPort))
url := profile.GrpcAddr(fmt.Sprint(about.GRPCPort))

client, err := flight.NewClientWithMiddleware(url, nil, nil, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func main() {

cli.CompletionOptions.HiddenDefaultCmd = true

// create a default profile if file does not exist
// create a default profile if file does not exist
if previousConfig, err := config.ReadConfigFromFile(); os.IsNotExist(err) {
conf := config.Config{
Profiles: map[string]config.Profile{"demo": defaultInitialProfile()},
Expand Down
Loading