Skip to content

Script autocomplete #54

@dylandreimerink

Description

@dylandreimerink

The script package is a great tool to use for testing and even runtime debugging, especially when used as REPL such as with the break command or in cilium-db shell. It would be nice if we could implement autocomplete for the commands.

The term package which we use when dropping into REPL already has support for an auto complete callback.

This would be great to have for commands themself, for example being able to type re<tab> and it autocompleting to replace. But perhaps more useful would be per-command completion as well. So doing cmp <tab> would list out available files and cycle through them. And commands such as those implemented by cilium/statedb could suggest table names ect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions