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 find command #135

Open
Theodus opened this issue Jul 21, 2020 · 2 comments
Open

Add find command #135

Theodus opened this issue Jul 21, 2020 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Theodus
Copy link
Contributor

Theodus commented Jul 21, 2020

using the Cloudsmith package querying API. This command should return a limited set of the results from Cloudsmith.

@Theodus Theodus added the enhancement New feature or request label Jul 21, 2020
@SeanTAllen SeanTAllen added good first issue Good for newcomers help wanted Extra attention is needed labels Jul 21, 2020
@rhagenson
Copy link
Member

I propose this command work in the following manner.

ponyc and Markdown table formatting used for example. This should work the same for any core Pony tool on Cloudsmith and precise formatting at CLI may change (i.e., no header, tab separated, command separated, whatever makes the most sense following discussion).

ponyup find <tool>

Return the most recent versions in each channel for current default platform.

Options

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.


@Theodus
Copy link
Contributor Author

Theodus commented Jul 28, 2020

@rhagenson that seems good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants