accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Marion (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ACCUMULO-1399) Pluggable commands for the shell
Date Wed, 22 May 2013 01:36:21 GMT

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

Dave Marion edited comment on ACCUMULO-1399 at 5/22/13 1:35 AM:
----------------------------------------------------------------

{quote}
One change that would be nice: use "--" to terminate argument parsing, and pass the remaining
args to the script.
{noformat}
script -e rhino -s "println(arg1+', '+arg2)" -- Hello World
{noformat}
{quote}

 Couldn't figure out how to do that, changed it from:

{code}
script -e rhino -s "println(arg1+', '+arg2)" -a arg1=Hello -a arg2=World
{code}

to:

{code}
script -e rhino -s "println(arg1+', '+arg2)" -a arg1=Hello,arg2=World
{code}


I removed the redundant '-a' and should also support passing null with a missing value.
                
      was (Author: dlmarion):
    {quote}
One change that would be nice: use "--" to terminate argument parsing, and pass the remaining
args to the script.
{noformat}
script -e rhino -s "println(arg1+', '+arg2)" -- Hello World
{noformat}
{quote}

 Couldn't figure out how to do that, changed it from:

{code}
script -e rhino -s "println(arg1+', '+arg2)" -a arg1=Hello -a arg2=World
{code}

to (removed the redundant '-a'):

{code}
script -e rhino -s "println(arg1+', '+arg2)" -a arg1=Hello,arg2=World
{code} 
                  
> Pluggable commands for the shell
> --------------------------------
>
>                 Key: ACCUMULO-1399
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1399
>             Project: Accumulo
>          Issue Type: New Feature
>          Components: shell
>            Reporter: Dave Marion
>            Assignee: Dave Marion
>            Priority: Minor
>             Fix For: 1.6.0
>
>         Attachments: ACCUMULO-1399-1.patch, ACCUMULO-1399-2.patch
>
>
> Proposing modification to the Shell to allow applications to create their own set of
commands. This might be accomplished using java.util.ServiceLoader or something like it. Specifically,
I'm thinking of a case where I have a create table command that is different than the one
provided by the Shell. In my case, my create table command may create one or more tables and
setup iterators on them.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message