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
+5 -1
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")