Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command to Admin CLI to get latest version #69

Open
colinmacleod opened this issue Nov 13, 2023 · 0 comments
Open

Add command to Admin CLI to get latest version #69

colinmacleod opened this issue Nov 13, 2023 · 0 comments

Comments

@colinmacleod
Copy link

Add a command to the CLI to output the latest version.
My specific use case: I want to deploy versions for multiple OSes simultaneously and then check PATCH is on the same version for each.
For now, a workaround is to use the "getVersions" command and pipe it to this python script:

import sys
import json
# parse the input stream as json
data = json.load(sys.stdin)
# sort the versions
data.sort()
# get the last element
latest_version = data[-1]
# print the latest version
print(latest_version)
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

No branches or pull requests

1 participant