You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/08/18 19:33:20 UTC

[jira] [Commented] (TINKERPOP-1285) Gremline console does not differentiate between multi-line and single-line input

    [ https://issues.apache.org/jira/browse/TINKERPOP-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15427029#comment-15427029 ] 

ASF GitHub Bot commented on TINKERPOP-1285:
-------------------------------------------

GitHub user robertdale opened a pull request:

    https://github.com/apache/tinkerpop/pull/385

    TINKERPOP-1285 added multi-line line number support

    Looks like:
    ```
    gremlin> 
    gremlin> 1 +
    001   2 +
    002   3 +
    003   x
    No such property: x for class: groovysh_evaluate
    Display stack trace? [yN] 
    003   4
    ==>10
    ```
    Note that the line number remained the same for the correction.
    
    Example from the jira ticket:
    ```
    gremlin> script = """line1
    001   line2
    002   line3
    003   ...
    004   """
    ==>line1
    line2
    line3
    ...
    
    gremlin> 
    ```
    
    Multi-line query:
    ```
    gremlin> 
    gremlin> g.V().has(
    001   'name',
    002   'marko')
    ==>v[1]
    gremlin> 
    ```

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

    $ git pull https://github.com/robertdale/tinkerpop TINKERPOP-1285

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

    https://github.com/apache/tinkerpop/pull/385.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 #385
    
----
commit 96537e40844731ad7efd0e513fac15b13dae16d7
Author: Robert Dale <ro...@gmail.com>
Date:   2016-08-18T19:18:31Z

    added multi-line line number support

----


> Gremline console does not differentiate between multi-line and single-line input
> --------------------------------------------------------------------------------
>
>                 Key: TINKERPOP-1285
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1285
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: console
>    Affects Versions: 3.2.0-incubating
>            Reporter: Rocco Varela
>            Priority: Minor
>
> When entering input, say into a script variable, that extends over multiple lines the gremlin console does not provide the user with any indication that they are in a multi-line input mode. Here is an example.
> Notice the 'gremline>' prompts are presented within the triple-quotes.
> {code}
> gremlin> script = '''
> gremlin> line1_command
> gremlin> line2_command
> gremlin> '''
> {code}
> Ideally we would like something like this, showing the user that they are still in multi-line input mode.
> {code}
> gremlin> script = '''
> ... line1_command
> ... line2_command
> ... '''
> gremlin>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)