karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Command completion not working as expected
Date Mon, 08 Apr 2019 08:23:46 GMT
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@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message