SHA256
1
0
forked from pool/jc

19 Commits

Author SHA256 Message Date
Michael Vetter
bf66bc5fef - Update to version 1.25.3
* Enhance bluetoothctl parser with added battery_percentage
    field.
  * Enhance git-log standard and streaming parsers with added
    lines_changed field under file_stats.
  * Fix pci-ids parser to correctly handle multiple subdevices.
  * Fix pip-show parser to handle multi-line fields with a
    beginning blank line.
  * Fix ss parser to correctly handle the Recv-Q field being too
    close to the Status field.
  * Fix top parsers to quiet uptime info parsing.
  * Fix traceroute parser to correctly handle hops with multiple
    IPs.
  * Fix zpool-status parser for config items lacking data values.
  * Optimize some tests by removing timezone settings and using
    quiet=True.

OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=33
2024-06-18 07:35:57 +00:00
Michael Vetter
077590f90f Accepting request 1161103 from home:mnhauke
- Update to version 1.25.2
  * Add apt-cache-show command parser.
  * Add apt-get-sqq command parser.
  * Add ethtool command parser.
  * Add needrestart command parser.
  * Enhance df parser to add human readable output support.
  * Enhance free parser to add human readable output support.
  * Enhance iptables parser to handle -x output.
  * Enhance /proc/pid/stat parser to support "Idle" state.
  * Enhance rpm_qi and pkg_index_deb parsers to split list fields
    into arrays.
  * Fix iwconfig parser to handle more special characters in the
    SSID name.
  * Fix xrandr parser to ignore extra horizontal and vertical stats
    lines.
- Update to version 1.25.1
  * Fix for crash when optional libraries are not installed.
  * Fix for ini parser crashing with some keys with no values.
  * Fix xrandr parser to extract more EDID data.
  * Enhance uptime parser to support output with no user information
  * Enhance --quiet CLI option to cover more warning messages.
  * Add tests for missing optional libraries.
- Update to version 1.25.0
  * Add --slurp functionality to wrap output from multiple lines
    into a single array.
  * Streaming parsers are not supported. Use jc -hhh to find parsers
    compatible with the slurp option.
  * Enhance /proc file magic syntax to allow slurping when multiple
    files are selected.
  * Enhance --meta-out functionality to include a list of the input

OBS-URL: https://build.opensuse.org/request/show/1161103
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=31
2024-03-25 06:15:15 +00:00
Michael Vetter
68c2dba49a Accepting request 1133902 from home:mnhauke
- Update to version 1.24.0
  * Add debconf-show command parser.
  * Add iftop command parser.
  * Add pkg-index-apk parser for Alpine Linux Package Index files.
  * Add pkg-index-deb parser for Debian/Ubuntu Package Index files.
  * Add proc-cmdline parser for /proc/cmdline file.
  * Add swapon command parser.
  * Add tune2fs command parser.
  * Remove iso-datetime parser deprecated since v1.22.1.
    (use datetime-iso instead).
  * Refactor acpi command parser for code cleanup.
  * Fix iptables parser for cases where the target field is blank
    in a rule.
  * Fix vmstat parsers for some cases where wide output is used.
  * Fix mount parser for cases with spaces in the mount point name.
  * Fix xrandr parser for infinite loop issues.

OBS-URL: https://build.opensuse.org/request/show/1133902
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=29
2023-12-19 09:42:35 +00:00
Michael Vetter
7003500103 Accepting request 1128581 from home:mnhauke
- Update to version 1.23.6
  * Fix XML parser for xmltodict library versions < 0.13.0
  * Fix who command parser for cases when the from field contains
    spaces
- Update to version 1.23.5
  * Add host command parser
  * Add nsd-control command parser
  * Add lsb_release command parser
  * Add /etc/os-release file parser
  * Enhance env command parser to support multi-line values
  * Enhance ping and ping-s parsers to add error and corrupted
    support
  * Enhance xml parser to include comments in the JSON output
  * Fix pidstat command parser when using -T ALL
  * Fix x509-cert parser to allow negative serial numbers
  * Fix x509-cert parser for cases when bitstrings are larger
    than standard
  * Fix xrandr command parser for associated device issues
  * Fix error when pygments library is not installed
- Update to version 1.23.4
  * Add /etc/resolve.conf file parser
  * Add /proc/net/tcp and /proc/net/tcp6 file parser
  * Add find command parser
  * Add ip route command parser
  * Fix certbot command parser to be more robust with different
    line endings
- Update to version 1.23.3
  * Add lsattr command parser
  * Add srt file parser
  * Add veracrypt command parser

OBS-URL: https://build.opensuse.org/request/show/1128581
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=27
2023-11-24 21:08:14 +00:00
Martin Hauke
8d18761aad Accepting request 1046310 from home:dirkmueller:Factory
- update to 1.22.4:
  * Add `iwconfig` command parser
  * Add NeXTSTEP format support to the PLIST file parser
  * Fix `proc` parser magic signature detection for `/proc/pid/stat` hacks
  * Fix `x509-cert` parser for string serial numbers
  * Add category tags to parser metadata: generic, standard, file, string,
    binary, command
  * Add "list parsers by category" view to help
  * Fix python 3.6-related issues
  * Add python 3.6 to automated tests

OBS-URL: https://build.opensuse.org/request/show/1046310
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=25
2023-01-09 14:22:43 +00:00
Martin Hauke
09825df01d Accepting request 1045060 from home:dirkmueller:Factory
- update to 1.22.3:
  * Add Common Log Format and Combined Log Format file parser (standard and
    streaming)
  * Add PostgreSQL password file parser
  * Add openvpn-status.log file parser
  * Add `cbt` command parser (Google Big Table)
  * Enhance `ifconfig` parser with interface lane information on BSD
  * Enhance `ifconfig` parser with additional IPv6 `scope_id` info for BSD
  * Fix `ifconfig` parser to capture some IPv6 addresses missed on BSD
  * Fix `git-log` and `git-log-s` parsers for failure on empty author name
  * Update `os-prober` parser with split EFI partition fields
  * Add ISO string attribute (`.iso`) to `jc.utils.timestamp()`
  * Fix several documentation typos

OBS-URL: https://build.opensuse.org/request/show/1045060
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=23
2022-12-23 17:39:30 +00:00
Michael Vetter
1bade9a1b1 Accepting request 1035505 from home:mnhauke
- Update to version 1.22.2
  * add sshd_conf parser for sshd configuration files and
    sshd -T output.
  * add findmnt command parser.
  * add git ls-remote command parser.
  * add os-prober command parser.
  * add SemVer string parser.
  * enhance the ifconfig parser so it can output multiple IPv4 and
    IPv6 addresses.
  * enhance xml parser with optional _ prefix for attributes
    instead of * @ by using the --raw option. This can make it
    easier to filter theJSON output in some tools.
  * fix the xml parser to output a normal Dictionary instead of
    OrderdDict.
  * fix csv and csv-s parsers for UTF-8 encoded CSV files with
    leading BOM bytes.
  * fix exit code to be non-zero on interrupt.
  * allow parser module objects to be used as arguments to
    jc.get_help() and jc.parser_info()
  * catch unexpected exceptions in the CLI
  * add error message on interrupt to STDERR

OBS-URL: https://build.opensuse.org/request/show/1035505
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=21
2022-11-14 09:21:40 +00:00
Martin Hauke
e2f2d40f57 Accepting request 1030942 from home:mnhauke
- Update to version 1.22.1
  * add udevadm command parser
  * add lspci command parser
  * add pci.ids file parser
  * fix proc-pid-stat parser for command names with spaces and
    newlines
  * enhance ip-address parser to add ip_split field
  * display until iso-datetime is removed in a future version.
  * optimize performance of calculated timestamps

OBS-URL: https://build.opensuse.org/request/show/1030942
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=19
2022-10-28 06:36:30 +00:00
Michael Vetter
1a2cb5dc99 Accepting request 983605 from home:mnhauke
- Update to version 1.20.1
  * Add postconf -M parser tested on linux
  * Update asciitable and asciitable-m parsers to preserve case
    in key names when using the -r or raw=True options.
  * Add long options (e.g. --help, --about, --pretty, etc.)
  * Fix id parser for cases where the user or group name is not
    present
- Update to version 1.20.0
  * Add YAML output option with -y
  * Add top -b standard and streaming parsers tested on linux
  * Add plugin_parser_count, standard_parser_count, and
    streaming_parser_count keys to jc -a output
  * Add is_compatible function to the utils module
  * Fix pip-show parser for packages with a multi-line license
    field
  * Fix ASCII Table parser for cases where centered headers cause
    mis-aligned fields

OBS-URL: https://build.opensuse.org/request/show/983605
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=17
2022-06-20 07:57:52 +00:00
Martin Hauke
41d717dfb9 Accepting request 977132 from home:mnhauke
- Update to version 1.19.0
  * Add chage --list command parser tested on linux
  * Add git log command streaming parser
  * Fix git log standard parser for corner-cases where hash
    values are in messages
  * Fix df command parser for rare instances when a newline is
    found at the end
  * Fix asciitable-m parser to skip some rows that contain column
    separator characters in cell data. A warning message will be
    printed to STDOUT unless -q or quiet=True is used.

OBS-URL: https://build.opensuse.org/request/show/977132
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=15
2022-05-17 15:44:39 +00:00
Martin Hauke
3ab83ebe45 Accepting request 948144 from home:mnhauke
- Update to version 1.18.1
  * Add high-level parse API for built-in and plugin parsers
  * Add python module developer documentation
  * Enhance magic syntax exception messages
  * Enhance documentation formatting

OBS-URL: https://build.opensuse.org/request/show/948144
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=14
2022-01-29 12:57:04 +00:00
Michael Vetter
e457e65dfd Accepting request 928358 from home:mnhauke
- Update to version 1.17.1
  * Fix file parser for gzip files
  * Fix uname parser for cases where the 'processor' and/or
    'hardware_platform' fields are missing on linux
  * Fix uname parser on FreeBSD
  * Add lsusb parser tested on linux
  * Add CSV file streaming parser
  * Add testing for Python 3.10.0

OBS-URL: https://build.opensuse.org/request/show/928358
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=13
2021-11-02 13:39:14 +00:00
Michael Vetter
78510fb93c Accepting request 921556 from home:mnhauke
- Update to version 1.17.0
  * Add wrapping of warning and error messages
  * Add vmstat parser tested on linux
  * Add support for streaming parsers
  * Add ls -l command streaming parser
  * Add ping and ping6 command streaming parser
  * Add vmstat command streaming parser
  * Add -u option to allow unbuffered output

OBS-URL: https://build.opensuse.org/request/show/921556
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=12
2021-10-04 08:31:44 +00:00
Michael Vetter
af43fd3fd9 Accepting request 913707 from home:mnhauke
- Update to version 1.16.1
  * Fix issue with process substitution with the magic syntax.
  * Fix issue with globs not including filenames with spaces with
    magic syntax.

- Update to version 1.16.0
  * Fix Man page location in source packages.
  * Add sfdisk command parser tested on linux.
  * Update unit test files to change the timezone when needed
    (POSIX only).

OBS-URL: https://build.opensuse.org/request/show/913707
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=11
2021-08-25 07:10:57 +00:00
Michael Vetter
d1753df813 Accepting request 861570 from home:mnhauke
- Update to version 1.14.1
  * Add iw-scan parser tested on linux (beta)
  * Update date parser for Ubuntu 20.04 support
  * Update last parser for last -F support
  * Update last parser to add convenience fields and augment data
    for easier parsing
  * Update man page
  * Minor documentation updates

OBS-URL: https://build.opensuse.org/request/show/861570
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=9
2021-01-11 09:20:50 +00:00
Martin Hauke
c1cb19a3e4 Accepting request 859754 from home:mnhauke
- Update to version 1.14.0
  * Add hashsum parser
  * Add hash parser
  * Add cksum parser
  * Add wc parser
  * Add printenv
  * Add vdir support under ls parser

OBS-URL: https://build.opensuse.org/request/show/859754
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=7
2021-01-05 14:38:50 +00:00
990fdbe5b0 Accepting request 826543 from home:mnhauke
- Update to version 1.13.4
  * Update crontab and crontab-u parsers to tighten up variable
    detection
  * Update ping parser to tighten linux/bsd detection
- Update to version 1.13.3
  * Update ping parser for Raspberry Pi compatibility
- Update to versino 1.13.2
  * Add key/value file parser (wrapper for ini parser)
  * Add date command parser
  * Update traceroute parser to more gracefully handle missing
    header row
  * Update traceroute parser to handle annotations
  * Update traceroute parser to only return successful probes
- Update to versino 1.13.1
  * Add route -6 tests
- Update to version 1.13.0
  * Add ping and ping6 command parser tested on linux
  * Add traceroute and traceroute6 command parser tested on linux
  * Add tracepath command parser tested on linux
  * Update ini parser to support files only containing key/value
    pairs
  * Update uname parser exception with a hint to use "uname -a"
  * Update route parser to support IPv6 tables
- Update to version 1.12.1
  * Fix tests when using older version of pygments library
- Update to version 1.12.0
  * Add sysctl command parser tested on linux
  * Update the cli code to allow older versions of the pygments
    library (2.3.0) for debian packaging
  * Code cleanup on the cli

OBS-URL: https://build.opensuse.org/request/show/826543
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=5
2020-08-20 13:26:34 +00:00
Michael Vetter
1ca7835333 Accepting request 809110 from home:mnhauke
- Update to version 1.11.1
  * Update stat command parser to change osx_flags field to string
  * Add dmidecode command parser
  * Update stat command parser to add OSX support
  * Update netstat command parser to add -r (route) functionality
    for linux and OSX
  * Update netstat command parser to add -i (interface)
    functionality for linux and OSX
  * Remove shebang from jc/cli.py for Fedora packaging
  * Change file permissions for Fedora packaging
  * Fix ls parser issue where the first file was skipped for
    ls -R on some platforms
  * Update last parser to handle 'gone - no logout' condition
  * Update netstat parser to handle bluetooth section (ignore
    gracefully for now)
  * Add license info to vendorized ifconfig-parser class
  * Add license file to dist for Fedora RPM packaging
    requirements
  * Remove tests from package to keep from polluting the global
    site-packages
  * Requirements modifications for Fedora RPM packaging
    requirements
  * Remove homebrew shim references from du osx tests
  * Minor change of using sys.exit(0) instead of exit()
  * Add color customization via JC_COLORS env variable
  * Fix break on pipe error
  * Change colors to ansi and match jello colors
  * Code cleanup
  * Add color output by default when not piping data to another
    program

OBS-URL: https://build.opensuse.org/request/show/809110
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=3
2020-05-27 20:47:59 +00:00
Michael Vetter
2a0951e26a Accepting request 774737 from home:mnhauke
Initial package for jc

OBS-URL: https://build.opensuse.org/request/show/774737
OBS-URL: https://build.opensuse.org/package/show/utilities/jc?expand=0&rev=1
2020-02-17 09:33:06 +00:00