From deef73207b8dce97cea8ff1654cd60efbcae7d6e Mon Sep 17 00:00:00 2001 From: Marco Vermeulen Date: Sun, 30 Jun 2013 17:17:56 +0100 Subject: [PATCH] Added mnemonic i for install. --- src/main/bash/gvm-main.sh | 2 ++ src/test/cucumber/gvm/mnemonics.feature | 16 +++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/main/bash/gvm-main.sh b/src/main/bash/gvm-main.sh index 19248313..f574c3c3 100644 --- a/src/main/bash/gvm-main.sh +++ b/src/main/bash/gvm-main.sh @@ -32,6 +32,8 @@ function gvm { COMMAND="version";; u) COMMAND="use";; + i) + COMMAND="install";; rm) COMMAND="uninstall";; c) diff --git a/src/test/cucumber/gvm/mnemonics.feature b/src/test/cucumber/gvm/mnemonics.feature index d0a7b5a0..d8ddaaa6 100644 --- a/src/test/cucumber/gvm/mnemonics.feature +++ b/src/test/cucumber/gvm/mnemonics.feature @@ -30,11 +30,17 @@ Feature: Mnemonics And I see "grails: 2.1.0" And I see "groovy: 2.0.5" - Scenario: Shortcut for uninstalling a local development Version - Given the candidate "groovy" version "2.1-SNAPSHOT" is already linked to "/tmp/groovy-core" - When I enter "gvm rm groovy 2.1-SNAPSHOT" - Then I see "Uninstalling groovy 2.1-SNAPSHOT" - And the candidate "groovy" version "2.1-SNAPSHOT" is not installed + Scenario: Shortcut for installing a Candidate Version + Given the candidate "grails" version "2.1.0" is not installed + When I enter "gvm i grails 2.1.0" and answer "Y" + Then I see "Installing: grails 2.1.0" + And the candidate "grails" version "2.1.0" is installed + + Scenario: Shortcut for uninstalling a Candidate Version + Given the candidate "groovy" version "2.0.5" is already installed and default + When I enter "gvm rm groovy 2.0.5" + Then I see "Uninstalling groovy 2.0.5" + And the candidate "groovy" version "2.0.5" is not installed Scenario: Shortcut for showing the current Version of gvm When I enter "gvm v"