Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
DeekshaBhandary opened this issue May 10, 2022 · 4 comments

Comments

@DeekshaBhandary
Copy link

No description provided.

@DeekshaBhandary
Copy link
Author

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>

olofhagsand added a commit that referenced this issue May 12, 2022
…mpletion list](#330)

  * Fixed by disabling `cligen_preference_mode`. This may have other side effects.
@DeekshaBhandary
Copy link
Author

Issue is still seen with this change

@olofhagsand
Copy link
Member

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
Copy link
Author

Issue is resolved in the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants