Skip to content

Conversation

@Benehiko
Copy link
Member

@Benehiko Benehiko commented Nov 4, 2025

What I did

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did

Signed-off-by: Alano Terblanche <[email protected]>
Comment on lines +50 to +64
func GetVersion(ctx context.Context) (string, error) {
var result any
if err := ClientBackend.Get(ctx, "/versions", &result); err != nil {
return "", err
}
val, err := jsonpath.Get("$.appVersion", result)
if err != nil {
return "", err
}
version, ok := val.(string)
if !ok {
return "", errors.New("could not get docker desktop version")
}
return version, nil
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need to do this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no i'll remove

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants