kernelkit / infix

Linux :yellow_heart: NETCONF = Infix
https://kernelkit.org
GNU General Public License v2.0
52 stars 12 forks source link

cli: hide internal interfaces in tabcomplete #691

Closed rical closed 1 month ago

rical commented 1 month ago

Description

Don't show "internal" interfaces in "show interface name" tab completion.

Side note

I initially implemented this in the show command, as "show ifnames". It worked but was unreasonably slow for some reason, perhaps due to the show init code that does resize and such. As there's no variables involved I abandoned that approach and inlined it instead.

Checklist