Skip to content

Completion key bindings addition #2

Description

@frederic-loui

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:

  • working nicely with reedline Completer and Menu.
  • remove command ambiguity by enforcing complete command syntax at CLI prompt.

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

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

  • working nicely with reedline Completer and Menu.
  • let the user write incomplete cli command sh run instead of show running-configuration

-> 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)

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions