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

Feature request: Listing remote versions #42

Merged
merged 2 commits into from
Jun 13, 2017

Conversation

umireon
Copy link
Contributor

@umireon umireon commented Apr 9, 2017

Related to #22

This PR adds listing remote Lua, LuaJIT, and Luarocks versions.

$ luaver list -r
5.3.4
5.3.3
...
5.0.1
5.0
$ luaver list-luajit -r
2.0.4
2.1.0-beta2
...
1.1.0
1.0.3
$ luaver list-luarocks -r
2.4.2
2.4.1
...
0.3.2
0.3.1

Candidate versions are pulled from following pages by using awk and sed.

Note that candidate versions can be pulled from git tags but they have an imcomplete list of versions.

@umireon
Copy link
Contributor Author

umireon commented Apr 10, 2017

Added a commit to sort versions according to semver conventions.

@DhavalKapil
Copy link
Owner

This prints version in the reverse order on my machine:

$ luaver list -r
5.0
5.0.1
5.0.2
5.0.3
5.1
5.1.1
5.1.2
5.1.3
5.1.4
5.1.5
5.2.0
5.2.1
5.2.2
5.2.3
5.2.4
5.3.0
5.3.1
5.3.2
5.3.3
5.3.4

Anyways, I'm merging it for now. Thanks!

@DhavalKapil DhavalKapil merged commit 99be897 into DhavalKapil:master Jun 13, 2017
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.

2 participants