[rhq] modules/enterprise

Joseph Marques jmarques at redhat.com
Thu Feb 4 19:04:38 UTC 2010


On 02/04/2010 02:00 PM, Bryan Kearney wrote:
> On 02/04/2010 01:55 PM, Joseph Marques wrote:
>> On 02/04/2010 01:33 PM, Bryan Kearney wrote:
>>>    
>>> modules/enterprise/agent/src/main/java/org/rhq/enterprise/agent/AgentMain.java             
>>> |    8 ++--
>>>    
>>> modules/enterprise/agent/src/main/java/org/rhq/enterprise/agent/JLineAgentInputReader.java 
>>> |   17 ++++++++--
>>>    2 files changed, 20 insertions(+), 5 deletions(-)
>>>
>>> New commits:
>>> commit 68d82c05cad099d4ba56fc5e6ecebc0e60b4a5bd
>>> Author: Bryan Kearney<bkearney at redhat.com>
>>> Date:   Thu Feb 4 13:35:18 2010 -0500
>>>
>>>       Added autocomplete in order to make Greg Happy
>>>
>> This adds auto-completion of command names, but how about the arguments
>> for each command?
>> _______________________________________________
>> rhq-devel mailing list
>> rhq-devel at lists.fedorahosted.org
>> https://fedorahosted.org/mailman/listinfo/rhq-devel
>
> I did not see an API on the commands that I could parse this. There 
> appears to be 2 or 3 patterns
>
> cmd < foo | bar >
> and
>
> cmd --some
> cmd --other
>
> -- bk
Well, you can take a look at AgentCommandPrompt, but the syntax/usage is 
just a simple string today.  It might have been more complex, but we 
hadn't considered jline when the agent was originally written.  I'd 
confirm with mazz, but I think there is a value to adding a new method 
on the interface so that each command can be auto-completed with 
arguments (and the valid values for each arg).


More information about the rhq-devel mailing list