clicon / clixon

YANG-based toolchain including NETCONF and RESTCONF interfaces and an interactive CLI
http://www.clicon.org/
Other
215 stars 72 forks source link

Keywords containing '-' hyphen are missing from the auto-completion list #330

Closed DeekshaBhandary closed 2 years ago

DeekshaBhandary commented 2 years ago
supervisor@latest>deeksha: op> show config s<PRESS ?>
  set                   Show configuration as CLI commands                                                                                    
  set-test              Show configuration as CLI commands    <----- here set-test is present                                                                                 
  system                Rtbrick system configuration                                                                                          
supervisor@latest>deeksha: op> show config set<PRESS ?>
  set                   Show configuration as CLI commands  <-----set-test is missing                                                                                   
supervisor@latest>deeksha: op>
DeekshaBhandary commented 2 years ago

Issue is still seen with this change

olofhagsand commented 2 years ago

Works for me on 5.7 release. Using the main example: example_cli.cli:

CLICON_MODE="example";
CLICON_PROMPT="%U@%H %W> ";
CLICON_PLUGIN="example_cli";
show config set("Show configuration as CLI commands");
show config set-test ("Show configuration as CLI commands");

Running the cli:

olof@alarik> clixon_cli -f /usr/local/etc/example.xml
olof@alarik /> show config s<PRESS ?>
  set                   Show configuration as CLI commands                                           
  set-test              Show configuration as CLI commands                                           
olof@alarik /> show config set<PRESS ?>
  set                   Show configuration as CLI commands                                           
  set-test              Show configuration as CLI commands                                           
olof@alarik /> show config set

Please try again (with newest version)

DeekshaBhandary commented 2 years ago

Issue is resolved in the latest version