[ 
https://issues.apache.org/jira/browse/KARAF-3455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet reopened KARAF-3455:
------------------------------------
      Assignee: Guillaume Nodet  (was: Achim Nierbeck)

Reopening to experiment a better way to handle this.

What I have in mind is to be able to provide custom parsing for commands.  A 
custom @Parsing would specify the class of the parser, in a similar way to the  
@Completion annotation.
The parser would be responsible for analyzing a given string and extract 
arguments and indicate the end of the command (for processing by another parser 
if multiple commands are provided in a single line).

A rebuilt command line would then be given to gogo for actual execution.  This 
would allow leveraging some gogo features (parameter expansion for example) in 
custom commands, but can also provide full control as all special gogo 
characters could be escaped to disable everything.


> Enhance Shell to support "less" completion
> ------------------------------------------
>
>                 Key: KARAF-3455
>                 URL: https://issues.apache.org/jira/browse/KARAF-3455
>             Project: Karaf
>          Issue Type: Improvement
>    Affects Versions: 4.0.0.M1
>            Reporter: Achim Nierbeck
>            Assignee: Guillaume Nodet
>             Fix For: 4.0.0, 4.0.0.M2
>
>
> Currently the shell supports a broad range of completions, including 
> variables etc. 
> For special commands like SQL or CQL commands brackets and other certain 
> special characters, that usually are interpreted for variables, need to be 
> completed instead. 



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

Reply via email to