You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2015/06/24 21:24:59 UTC

incubator-tinkerpop git commit: Renamed plugin command in Console from "deactivate" to "unuse" TINKERPOP3-742

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master b2875c85c -> 80f3119bc


Renamed plugin command in Console from "deactivate" to "unuse" TINKERPOP3-742

This change makes the use/unuse options symmetric with one another.


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/80f3119b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/80f3119b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/80f3119b

Branch: refs/heads/master
Commit: 80f3119bcaa11023380a61986690bb57fbe1984a
Parents: b2875c8
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Wed Jun 24 15:23:05 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Wed Jun 24 15:23:05 2015 -0400

----------------------------------------------------------------------
 .../tinkerpop/gremlin/console/commands/PluginCommand.groovy    | 6 +++---
 .../gremlin/console/commands/PluginCommand.properties          | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/80f3119b/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/commands/PluginCommand.groovy
----------------------------------------------------------------------
diff --git a/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/commands/PluginCommand.groovy b/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/commands/PluginCommand.groovy
index ee69b15..15dcd20 100644
--- a/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/commands/PluginCommand.groovy
+++ b/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/commands/PluginCommand.groovy
@@ -23,7 +23,7 @@ import org.codehaus.groovy.tools.shell.ComplexCommandSupport
 import org.codehaus.groovy.tools.shell.Groovysh
 
 /**
- * Activate a plugin.
+ * Activate and manage a plugin.
  *
  * @author Stephen Mallette (http://stephen.genoprime.com)
  */
@@ -31,7 +31,7 @@ class PluginCommand extends ComplexCommandSupport {
     private final Mediator mediator
 
     public PluginCommand(final Groovysh shell, final Mediator mediator) {
-        super(shell, ":plugin", ":pin", ["use", "list", "deactivate"], "use")
+        super(shell, ":plugin", ":pin", ["use", "list", "unuse"], "use")
         this.mediator = mediator
     }
 
@@ -50,7 +50,7 @@ class PluginCommand extends ComplexCommandSupport {
         return "$pluginName activated"
     }
 
-    def Object do_deactivate = { List<String> arguments ->
+    def Object do_unuse = { List<String> arguments ->
         final pluginName = arguments.size() == 1 ? arguments[0] : null
         if (pluginName == null || pluginName.isEmpty()) return "Specify the name of the plugin to deactivate"
 

http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/80f3119b/gremlin-console/src/main/resources/org/apache/tinkerpop/gremlin/console/commands/PluginCommand.properties
----------------------------------------------------------------------
diff --git a/gremlin-console/src/main/resources/org/apache/tinkerpop/gremlin/console/commands/PluginCommand.properties b/gremlin-console/src/main/resources/org/apache/tinkerpop/gremlin/console/commands/PluginCommand.properties
index bc7f2dd..5b57aab 100644
--- a/gremlin-console/src/main/resources/org/apache/tinkerpop/gremlin/console/commands/PluginCommand.properties
+++ b/gremlin-console/src/main/resources/org/apache/tinkerpop/gremlin/console/commands/PluginCommand.properties
@@ -15,5 +15,5 @@
 # specific language governing permissions and limitations
 # under the License.
 command.description=Manage plugins for the Console
-command.usage=[use <plugin-name>|list|deactivate <plugin-name>]
+command.usage=[use <plugin-name>|list|unuse <plugin-name>]
 command.help=Manage plugins for the Console.
\ No newline at end of file