-
-
Notifications
You must be signed in to change notification settings - Fork 13
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 find command #135
Comments
I propose this command work in the following manner.
|
Name | Argument | Function |
---|---|---|
a | N/a | Returns versions for all platforms |
n | U8 | Returns the latest n versions |
platform | String | Overrides the default platform |
Minimal return: ponyup find ponyc
Tool | Channel | Version | Platform |
---|---|---|---|
ponyc | release | 0.35.1 | x86_64-linux-gnu |
ponyc | nightly | 20200722 | x86_64-linux-gnu |
Note it is sorted release
first.
W/ --platform
option: ponyup find --platform=x86-64-apple-darwin ponyc
Tool | Channel | Version | Platform |
---|---|---|---|
ponyc | release | 0.35.1 | x86-64-apple-darwin |
ponyc | nightly | 20200722 | x86-64-apple-darwin |
Note it is sorted release
first.
W/ -a
option: ponyup find -a ponyc
Tool | Channel | Version | Platform |
---|---|---|---|
ponyc | release | 0.35.1 | unknown-linux-musl |
ponyc | nightly | 20200722 | unknown-linux-musl |
ponyc | release | 0.35.1 | x86-64-apple-darwin |
ponyc | nightly | 20200722 | x86-64-apple-darwin |
ponyc | release | 0.35.1 | x86_64-linux-gnu |
ponyc | nightly | 20200722 | x86_64-linux-gnu |
... | ... | ... | ... |
Note that it is sorted by platform.
W/ -n
option: ponyup find -n 2 ponyc
Tool | Channel | Version | Platform |
---|---|---|---|
ponyc | release | 0.35.1 | x86_64-linux-gnu |
ponyc | release | 0.35.0 | x86_64-linux-gnu |
ponyc | nightly | 20200722 | x86_64-linux-gnu |
ponyc | nightly | 20200721 | x86_64-linux-gnu |
Note it is sorted from newest to oldest version.
W/ -n
and -a
: ponyup find -a -n 2 ponyc
Tool | Channel | Version | Platform |
---|---|---|---|
ponyc | release | 0.35.1 | unknown-linux-musl |
ponyc | release | 0.35.0 | unknown-linux-musl |
ponyc | nightly | 20200722 | unknown-linux-musl |
ponyc | nightly | 20200721 | unknown-linux-musl |
ponyc | release | 0.35.1 | x86-64-apple-darwin |
ponyc | release | 0.35.0 | x86-64-apple-darwin |
ponyc | nightly | 20200722 | x86-64-apple-darwin |
ponyc | nightly | 20200721 | x86-64-apple-darwin |
ponyc | release | 0.35.1 | x86_64-linux-gnu |
ponyc | release | 0.35.0 | x86_64-linux-gnu |
ponyc | nightly | 20200722 | x86_64-linux-gnu |
ponyc | nightly | 20200721 | x86_64-linux-gnu |
... | ... | ... | ... |
Note it is sorted by platform then newest to oldest version.
@rhagenson that seems good to me. |
using the Cloudsmith package querying API. This command should return a limited set of the results from Cloudsmith.
The text was updated successfully, but these errors were encountered: