karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lichtin <lich...@yahoo.com>
Subject Re: Command completion not working as expected
Date Mon, 08 Apr 2019 14:00:48 GMT
But the default for multivalued() is already false.


jbonofre wrote
> Hi,
> 
> Did you set multivalued=false on the argument ?
> 
> Else it will be multivalued, so the same completion again.
> 
> Regards
> JB
> 
> On 08/04/2019 09:26, Martin Lichtin wrote:
>> Hi
>> 
>> Having a problem with Karaf command arguments completion, it seems to not
>> work for 3 arguments?
>> Something like
>> 
>>   @Argument(index = 0, required = true, description = "A1")
>>   @Completion(A1Completer.class)
>>   private String a1;
>>   @Argument(index = 1, required = true, description = "A2")
>>   @Completion(A2Completer.class)
>>   private String a2;
>>   @Argument(index = 2, required = true, description = "A3")
>>   @Completion(A3Completer.class)
>>   private String a3;
>> 
>> works only up to the 2nd argument, but the third completer is never
>> called, instead A2Completer is called again.
>> Anyone else seeing this? It's with Karaf 4.1.7
>> 
>> - Martin
>> 
> 
> -- 
> Jean-Baptiste Onofré

> jbonofre@

> http://blog.nanthrax.net
> Talend - http://www.talend.com





--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Mime
View raw message