accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-1399) Pluggable commands for the shell
Date Wed, 22 May 2013 02:07:21 GMT

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

Josh Elser commented on ACCUMULO-1399:
--------------------------------------

Any reason to be so explicit about the arg1,arg2...argN?

I like Eric's idea, but I would say another alternative might be to just have one big argument
value that gets passed to your script. Something like:

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

I'm thinking explicitly of the case of scripting languages which handle method overloading
transparently or globbing them together in one hash/map. At that point, I would think the
difficulty would arise in handling quotation marks and correctly handling something like:

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

Purely speculative though; I haven't looked at the code you have so far.
                
> 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