From f454b9e455fa1fdea68b4c148e25ca3d441b7486 Mon Sep 17 00:00:00 2001 From: Marco Vermeulen Date: Wed, 26 Jun 2013 08:22:11 +0100 Subject: [PATCH] Made mnemonics more concise. --- src/main/bash/gvm-main.sh | 6 +++--- src/test/cucumber/gvm/mnemonics.feature | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/bash/gvm-main.sh b/src/main/bash/gvm-main.sh index 43dddd13..4ab7bd5d 100644 --- a/src/main/bash/gvm-main.sh +++ b/src/main/bash/gvm-main.sh @@ -78,11 +78,11 @@ function gvm { COMMAND="version";; u) COMMAND="use";; - remove) + rm) COMMAND="uninstall";; - cur) + c) COMMAND="current";; - def) + d) COMMAND="default";; esac diff --git a/src/test/cucumber/gvm/mnemonics.feature b/src/test/cucumber/gvm/mnemonics.feature index 2cc1416c..4f06031c 100644 --- a/src/test/cucumber/gvm/mnemonics.feature +++ b/src/test/cucumber/gvm/mnemonics.feature @@ -14,25 +14,25 @@ Feature: Mnemonics Scenario: Shortcut for displaying current Candidate Version in use Given the candidate "grails" version "1.3.9" is already installed and default - When I enter "gvm cur grails" + When I enter "gvm c grails" Then I see "Using grails version 1.3.9" Scenario: Shortcut for displaying current Candidate Versions Given the candidate "groovy" version "2.0.5" is already installed and default And the candidate "grails" version "2.1.0" is already installed and default - When I enter "gvm cur" + When I enter "gvm c" Then I see "Using:" 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 remove groovy 2.1-SNAPSHOT" + 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 showing the current Version of gvm - When I enter "gvm version" + When I enter "gvm v" Then I see "Groovy enVironment Manager x.y.z" Scenario: Shortcut for using a candidate version that is installed @@ -45,7 +45,7 @@ Feature: Mnemonics Scenario: Shortcut for defaulting a Candidate Version that is installed and not default And the candidate "groovy" version "2.0.5" is already installed but not default - When I enter "gvm def groovy 2.0.5" + When I enter "gvm d groovy 2.0.5" Then I see "Default groovy version set to 2.0.5" And the candidate "groovy" version "2.0.5" should be the default