holo-routing / holo-cli

`holo` Command Line Interface
MIT License
0 stars 2 forks source link

Completion key bindings addition #2

Open frederic-loui opened 2 months ago

frederic-loui commented 2 months ago

Most "industry" CLI use mainly 3 shortcuts in order to trigger CLI completion.

  1. <Tab> character
  2. <Space>character
  3. <?> character (mostly triggered in conjunction with <shift>)

JunOS CLI enables the 3 of them above which has the benefit of:

-> description handling decided here has to disable <space> completion

IOS-XR/XE enables only [1] and [3] :

-> description handling decided here has to adjust with <space> usage The command entered needs to be "normalized" during Validation step.

JunOS style seems to be easier (reedline library check needed) to implement (granted that object description case can be easily handled)

frederic-loui commented 2 months ago

Completion trigger binding added for <?>. related to issue #2 please note that <space> trigger will be implemented along side in issue #1