From f6ca32b3a31f314fa0b31d9e8b5494491b928f7e Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Sat, 24 Apr 2021 10:22:19 -0700 Subject: [PATCH] update ufw docs with a note on lists of ports --- docs/parsers/ufw.md | 2 ++ jc/parsers/ufw.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/parsers/ufw.md b/docs/parsers/ufw.md index 8fe94faf..d89f4d88 100644 --- a/docs/parsers/ufw.md +++ b/docs/parsers/ufw.md @@ -3,6 +3,8 @@ # jc.parsers.ufw jc - JSON CLI output utility `ufw status` command output parser +Note: a list of ports will be parsed to the `to_service` or `from_service` field as a comma-separated string. + Usage (cli): $ ufw status | jc --ufw diff --git a/jc/parsers/ufw.py b/jc/parsers/ufw.py index e251a0fb..7d5a3d9f 100644 --- a/jc/parsers/ufw.py +++ b/jc/parsers/ufw.py @@ -1,5 +1,7 @@ """jc - JSON CLI output utility `ufw status` command output parser +Note: a list of ports will be parsed to the `to_service` or `from_service` field as a comma-separated string. + Usage (cli): $ ufw status | jc --ufw