[console] - sub-command

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[console] - sub-command

fpapon
Hi,

When entering in a subgroup command line, the tab completer display all
the command and not only the subgroup command.

Is it normal or only the subcommand should be display ?

Test on Karaf 4.1.4 and 4.2.0.M2 :

karaf@root()> instance
karaf@root(instance)>                                                                                                                                                                                

#prompt                                                                                                                                                                                  
*:bundle
bundle                                                                                                                                                                                      
*:config
config                                                                                                                                                                                      
*:dev
dev                                                                                                                                                                                            
*:event
event                                                                                                                                                                                        
*:exit
exit                                                                                                                                                                                          
*:feature
feature                                                                                                                                                                                    
*:help
help                                                                                                                                                                                          
*:instance
instance                                                                                                                                                                                  
*:jaas
jaas                                                                                                                                                                                          
*:kar
kar                                                                                                                                                                                            
*:log                                                                                                                                                                                                
*:package
package                                                                                                                                                                                    
*:service
service                                                                                                                                                                                    
*:shell
shell                                                                                                                                                                                        
*:ssh
ssh                                                                                                                                                                                            
*:system
system                                                                                                                                                                                      
__directories                                                                                                                                                                                        
__files                                                                                                                                                                                              
__get_scr_components                                                                                                                                                                                 
__load_class                                                                                                                                                                                         
__option_not_present                                                                                                                                                                                 
__set_unset_arguments                                                                                                                                                                                
__usage_completion                                                                                                                                                                       


....

François

François Papon
fpapon@apache.org
Yupiik - https://www.yupiik.com
Reply | Threaded
Open this post in threaded view
|

Re: [console] - sub-command

jbonofre
Hi

It depends the completion mode you use.

Subshell completion mode is what you want. You can change on the fly or via config (it's described in the user guide).

Regards
JB
Le 3 janv. 2018, à 13:15, Francois Papon <[hidden email]> a écrit:
Hi,

When entering in a subgroup command line, the tab completer display all
the command and not only the subgroup command.

Is it normal or only the subcommand should be display ?

Test on Karaf 4.1.4 and 4.2.0.M2 :

karaf@root()> instance
karaf@root(instance)>                                                                                                                                                                                

#prompt                                                                                                                                                                                  
*:bundle
bundle                                                                                                                                                                                      
*:config
config                                                                                                                                                                                      
*:dev
dev                                                                                                                                                                                            
*:event
event                                                                                                                                                                                        
*:exit
exit                                                                                                                                                                                          
*:feature
feature                                                                                                                                                                                    
*:help
help                                                                                                                                                                                          
*:instance
instance                                                                                                                                                                                  
*:jaas
jaas                                                                                                                                                                                          
*:kar
kar                                                                                                                                                                                            
*:log                                                                                                                                                                                                
*:package
package                                                                                                                                                                                    
*:service
service                                                                                                                                                                                    
*:shell
shell                                                                                                                                                                                        
*:ssh
ssh                                                                                                                                                                                            
*:system
system                                                                                                                                                                                      
__directories                                                                                                                                                                                        
__files                                                                                                                                                                                              
__get_scr_components                                                                                                                                                                                 
__load_class                                                                                                                                                                                         
__option_not_present                                                                                                                                                                                 
__set_unset_arguments                                                                                                                                                                                
__usage_completion                                                                                                                                                                       


....

François

Reply | Threaded
Open this post in threaded view
|

Re: [console] - sub-command

fpapon

Thanks ;)

I will read the user guide first next time...

François


Le 03/01/2018 à 17:29, Jean-Baptiste Onofré a écrit :
Hi

It depends the completion mode you use.

Subshell completion mode is what you want. You can change on the fly or via config (it's described in the user guide).

Regards
JB
Le 3 janv. 2018, à 13:15, Francois Papon <[hidden email]> a écrit:
Hi,

When entering in a subgroup command line, the tab completer display all
the command and not only the subgroup command.

Is it normal or only the subcommand should be display ?

Test on Karaf 4.1.4 and 4.2.0.M2 :

karaf@root()> instance
karaf@root(instance)>                                                                                                                                                                                

#prompt                                                                                                                                                                                  
*:bundle
bundle                                                                                                                                                                                      
*:config
config                                                                                                                                                                                      
*:dev
dev                                                                                                                                                                                            
*:event
event                                                                                                                                                                                        
*:exit
exit                                                                                                                                                                                          
*:feature
feature                                                                                                                                                                                    
*:help
help                                                                                                                                                                                          
*:instance
instance                                                                                                                                                                                  
*:jaas
jaas                                                                                                                                                                                          
*:kar
kar                                                                                                                                                                                            
*:log                                                                                                                                                                                                
*:package
package                                                                                                                                                                                    
*:service
service                                                                                                                                                                                    
*:shell
shell                                                                                                                                                                                        
*:ssh
ssh                                                                                                                                                                                            
*:system
system                                                                                                                                                                                      
__directories                                                                                                                                                                                        
__files                                                                                                                                                                                              
__get_scr_components                                                                                                                                                                                 
__load_class                                                                                                                                                                                         
__option_not_present                                                                                                                                                                                 
__set_unset_arguments                                                                                                                                                                                
__usage_completion                                                                                                                                                                       


....

François


François Papon
fpapon@apache.org
Yupiik - https://www.yupiik.com