klish command completion on pressing tab button

前端 未结 1 1818
庸人自扰
庸人自扰 2021-01-24 05:03

Hi I have small doubt in klish xml file. I implemented a small xml file for klish



        
1条回答
  •  -上瘾入骨i
    2021-01-24 05:40

    We can not use space in the < COMMAND > tag like in my case I used.

    
    

    This is not the proper way to use space in the < COMMAND > tag

    But if you want that your command should be like this only i.e. show core then there are two ways to achieve it.

    First way:-

    
    
             
          
     echo "core status"
    
    

    Second way:- Use VAR tag and completion attribute in PARAM tag

    
       
         
        
       echo "core status"
      
     
    

    0 讨论(0)
提交回复
热议问题