Jenv: Behave more like rvm

Created on 18 Dec 2014  ·  4Comments  ·  Source: jenv/jenv

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.

Most helpful comment

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 :)

All 4 comments

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 :)

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

Exactly! :+1:

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 :)

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rexgreen picture rexgreen  ·  8Comments

juanmbellini picture juanmbellini  ·  4Comments

Tmarty picture Tmarty  ·  7Comments

Reapor-Yurnero picture Reapor-Yurnero  ·  9Comments

Zooce picture Zooce  ·  9Comments