From 53e08cd0d6073b1ea02d3d0ad0a65be398dcfd08 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Mon, 11 Dec 2017 07:52:46 -0700 Subject: [PATCH] add OpenBSD pfctl completion --- share/completions/pfctl.fish | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 share/completions/pfctl.fish diff --git a/share/completions/pfctl.fish b/share/completions/pfctl.fish new file mode 100644 index 000000000..2c318d2a4 --- /dev/null +++ b/share/completions/pfctl.fish @@ -0,0 +1,32 @@ +complete -c pfctl -s s --description 'Show a filter parameter by modifier' -xa \ + 'queue\t"Show loaded queue definitions" \ + rules\t"Show loaded filter rules" \ + Anchors\t"Show anchors attached to main ruleset" \ + states\t"Show state table" + Sources\t"Show source tracking table" \ + info\t"Show filter information" \ + labels\t"Show stats of labeled filter rules" \ + timeouts\t"Show global timeouts" \ + memory\t"Show pool memory hard limits" \ + Tables\t"Show the list of tables" \ + osfp\t"Show a list of OS fingerprints" \ + Interfaces\t"List PF interfaces/drivers" \ + all\t"Everything."' +complete -c pfctl -s F --description 'Flush filter params specified by mod' -xa \ + 'rules\t"Flush filter rules" \ + states\t"Flush state table" \ + Sources\t"Flush source tracking table" \ + info\t"Flush filter information" \ + Tables\t"Flush the tables" \ + ospf\t"Flush the passive OS fingerprints" \ + all\t"Flush everything"' +complete -c pfctl -s T --description 'Table command' -xa \ + 'kill\t"Kill a table." \ + flush\t"Flush addresses of a table" \ + add\t"Add one or more addresses in table" \ + delete\t"Delete one or more addresses from a table" \ + expire\t"Delete addresses where stats cleared > N seconds" \ + replace\t"Replace the addresses of the table" \ + show\t"Show the contents of a table" \ + test\t"Test if the given addresses match a table" \ + zero\t"Clear all the stats of a table"'