From 2b7405c5e21db2488fc48b58f6c65cff947ca95d Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Tue, 5 Jan 2021 13:58:38 -0800 Subject: [PATCH] doc updates --- CHANGELOG | 3 +-- README.md | 2 +- docs/parsers/last.md | 6 +----- jc/parsers/last.py | 6 +----- man/jc.1 | 22 +++++++++++++++++++--- 5 files changed, 23 insertions(+), 16 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index d70674d0..865e89e0 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,7 +1,6 @@ jc changelog -20210104 v1.14.1 -- Add wi scan parser +20210105 v1.14.1 - Update date parser for support Ubuntu 20.04 - Update last parser for last -F support - Update man page diff --git a/README.md b/README.md index 288d85a5..a8a65cc3 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ The JSON output can be compact (default) or pretty formatted with the `-p` optio - `--group` enables the `/etc/group` file parser - `--gshadow` enables the `/etc/gshadow` file parser - `--hash` enables the `hash` command parser -- `--hashsum` enables the `hashsum` command parser (`md5sum`, `shasum`, etc.) +- `--hashsum` enables the `hashsum` command parser (`md5`, `md5sum`, `shasum`, `sha1sum`, `sha224sum`, `sha256sum`, `sha384sum`, `sha512sum`) - `--history` enables the `history` command parser - `--hosts` enables the `/etc/hosts` file parser - `--id` enables the `id` command parser diff --git a/docs/parsers/last.md b/docs/parsers/last.md index ef614dad..ef5a61e6 100644 --- a/docs/parsers/last.md +++ b/docs/parsers/last.md @@ -2,11 +2,7 @@ # jc.parsers.last jc - JSON CLI output utility `last` and `lastb` command output parser -Supports: -- `last` -- `last -F` -- `lastb` -- `lastb -F` +Supports -w and -F options. Usage (cli): diff --git a/jc/parsers/last.py b/jc/parsers/last.py index 69202212..bb40404b 100644 --- a/jc/parsers/last.py +++ b/jc/parsers/last.py @@ -1,10 +1,6 @@ """jc - JSON CLI output utility `last` and `lastb` command output parser -Supports: -- `last` -- `last -F` -- `lastb` -- `lastb -F` +Supports -w and -F options. Usage (cli): diff --git a/man/jc.1 b/man/jc.1 index 5091605c..8d92646d 100644 --- a/man/jc.1 +++ b/man/jc.1 @@ -1,4 +1,4 @@ -.TH jc 1 2020-07-31 1.13.2 "JSON CLI output utility" +.TH jc 1 2021-01-05 1.14.1 "JSON CLI output utility" .SH NAME jc \- JSONifies the output of many CLI tools and file-types .SH SYNOPSIS @@ -32,6 +32,10 @@ arp command parser blkid command parser .TP .B +\fB--cksum\fP +cksum and sum command parser +.TP +.B \fB--crontab\fP crontab command and file parser .TP @@ -65,7 +69,7 @@ du command parser .TP .B \fB--env\fP -env command parser +env and printenv command parser .TP .B \fB--file\fP @@ -112,6 +116,14 @@ INI file parser iptables command parser .TP .B +\fB--hash\fP +hash BASH builtin command parser +.TP +.B +\fB--hashsum\fP +md5, md5sum, shasum, sha1sum, sha224sum, sha256sum, sha384sum, and sha512sum command parser +.TP +.B \fB--jobs\fP jobs command parser .TP @@ -125,7 +137,7 @@ last and lastb command parser .TP .B \fB--ls\fP -ls command parser +ls and vdir command parser .TP .B \fB--lsblk\fP @@ -232,6 +244,10 @@ uptime command parser w command parser .TP .B +\fB--wc\fP +wc command parser +.TP +.B \fB--who\fP who command parser .TP