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

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

I wonder if you could define some sort of meta-language (I'm making up words 
now, I think) in which you could do something like this automagically.

{{(define make-my-tables ((create-table foo1), (create-table foo2), 
(create-table foo3), (config -t foo1 -s prop1=val1)))}}

Which would define the command "make-my-tables" which you could call in the 
shell. I wonder how much easier life would get if we had a more 
dynamic/interpreted language around the shell. Thoughts?
                
> 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
>
>
> 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

Reply via email to