GitHub user spmallette opened a pull request:

    https://github.com/apache/incubator-tinkerpop/pull/137

    TINKERPOP3-914 Gremlin Console :remote to Gremlin Server supports alias

    https://issues.apache.org/jira/browse/TINKERPOP3-914
    
    Added a "alias" option to :remote config that lets the user supply 
key/value pairs representing the aliases.  Included "show" and "reset" options 
as well.  Updated docs which generate nicely. 
    
    Unit tests were added as well as integration tests so build/test should be:
    
    ```text
    mvn clean install
    mvn clean install -DskipIntegrationTests=false -pl gremlin-console
    ```
    
    Test manually after starting gremlin server with:
    
    ```text
    gremlin> :remote connect tinkerpop.server conf/remote.yaml
    ==>Connected - localhost/127.0.0.1:8182
    gremlin> :> TinkerFactory.generateModern(graph)
    ==>null
    gremlin> :> graph
    ==>tinkergraph[vertices:6 edges:6]
    gremlin> :> g.V()
    ==>v[1]
    ==>v[2]
    ==>v[3]
    ==>v[4]
    ==>v[5]
    ==>v[6]
    gremlin> :remote config alias x g
    ==>x=g
    gremlin> :> x.V()
    ==>v[1]
    ==>v[2]
    ==>v[3]
    ==>v[4]
    ==>v[5]
    ==>v[6]
    gremlin> :remote config alias show
    ==>x=g
    gremlin> :remote config alias reset
    ==>Aliases cleared
    gremlin> :remote config alias show
    gremlin> 
    ```
    
    VOTE: +1

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/incubator-tinkerpop TINKERPOP3-914

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-tinkerpop/pull/137.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #137
    
----
commit 2c7823e8abc9dc3214c33296b58182a9bf961882
Author: Stephen Mallette <[email protected]>
Date:   2015-11-05T16:52:55Z

    TINKERPOP3-914 Gremlin Console :remote to Gremlin Server supports alias
    
    Added a "alias" option to :remote config that lets the user supply 
key/value pairs representing the aliases.  Included "show" and "reset" options 
as well.  Updated docs which generate nicely.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to