Update nftables completion

add completion for set/map name in `nft add/delete element [family] table <tab>`
This commit is contained in:
Mumumu 2024-06-25 20:13:44 +08:00 committed by GitHub
parent 978e79e12c
commit 6621b9fa2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -242,8 +242,12 @@ while true;do
descriptors=(": : _nft_object $cmd_fam $cmd_tab $cmd_obj false")
nextstate="start"
;;
(add-element | delete-element)
cmd_tab=$line[1]
descriptors=(": : _nft_object $cmd_fam $cmd_tab '\(map\|set\)' false")
nextstate="start"
;;
#TODO:
#(add-element | delete-element)
#(add-set | add-map)
#(add-flowtable)
#("add-ct\ helper")