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

Behave more like rvm #67

Open
mojavelinux opened this issue Dec 18, 2014 · 4 comments
Open

Behave more like rvm #67

mojavelinux opened this issue Dec 18, 2014 · 4 comments

Comments

@mojavelinux
Copy link

RVM is a very popular tool for managing versions in Ruby. Like many other Ruby users and developers (who also are partial to the JVM), I use RVM every day. When I switch between rvm and jenv, I always forgot the commands because they are so different.

It would be great if jenv could align more with RVM in the following two ways:

  1. Provide the alias jvm (short for Java Version Manager)
  2. Provide alias commands for use and list (at a minimum)

The alias jvm is just crying out to be used. It has the follow things going for it:

  1. It's not currently a command (as amazing as that seems)
  2. It fits the naming pattern for this family of tools (rvm, gvm, jvm)
  3. The acronym works (Java Version Manager or JVM Version Manager)

As for the commands, it would be great if I could simply type:

$ jvm list

to get a list of all my versions and

$ jvm use 1.8

To switch my shell (yes, the shell) to my 1.8 alias. I think the scope (local or global) should be moved to an option flag, like:

$ jvm use 1.8 --local

Perhaps these command aliases are only available when using the jvm alias, since the intention is to provide alignment with RVM.

@gcuisinier
Copy link
Collaborator

Hi,

jenv is an java-adapted-fork of rbenv, the concurrent of RVM ;)
So every command are similar to this one, and I would not change this in "jenv" command.

But providing a RVM-like command wrapper (jvm sounds good) could be envisaged.
I will try this after Christmas and New year :)

@mojavelinux
Copy link
Author

But providing a RVM-like command wrapper (jvm sounds good) could be envisaged.

Exactly! 👍

@thescouser89
Copy link

Wouldn't that be confusing with JVM (Java Virtual Machine)? Even though we don't have a 'jvm' command, but use 'java', using 'jvm' as a command name could make things become overloaded and confusing.

Just my opinion though :)

@shellbj
Copy link

shellbj commented Jan 21, 2015

I will point out that someone has ported RVM to java; albeit with a poor name. You can find that project here: https://github.com/linux-china/jenv

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

4 participants