1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2026-04-24 20:56:11 +02:00
Commit Graph

3718 Commits

Author SHA1 Message Date
Kelly Brazil e2f97d7d8e add simple summary support to rsync and rsync-s parsers 2024-02-27 10:26:07 -08:00
Kelly Brazil f9bf889654 add apt_cache_show tests and fix parser name in warning messeages for parser aliases 2024-02-26 20:18:57 -08:00
Kelly Brazil 026846650a add apt_cache_show parser. Split list values into an array. fix tests. 2024-02-26 19:56:07 -08:00
Kelly Brazil 850917ada0 remove extra fields from df parser. All size values are now normalized to bytes. Size field is now an integer. 2024-02-26 11:17:42 -08:00
Kelly Brazil bce4eb536a add human readable output support to the free parser 2024-02-26 10:42:26 -08:00
Kelly Brazil ef2a2121b5 add human-readable support to the df parser 2024-02-26 10:00:42 -08:00
Kelly Brazil 4bed8392b8 update release notes section 2024-02-20 08:56:53 -08:00
Kelly Brazil 8e2bcba352 use get_parser instead of importlib 2024-02-14 15:45:18 -08:00
Kelly Brazil 588e5c2653 add Idle support to state_map 2024-02-14 15:31:10 -08:00
Kelly Brazil 25085c3412 doc update 2024-02-14 15:25:22 -08:00
Kelly Brazil bfa99d99af Merge pull request #544 from viktory683/iwconfig-fix
Iwconfig fix
2024-02-14 23:19:31 +00:00
Kelly Brazil b8f7ddcfc8 Merge branch 'dev' into iwconfig-fix 2024-02-14 22:46:49 +00:00
bzglve 413ea4bc68 added some more symbols following "SSID Naming Conventions"
from https://www.cisco.com/assets/sol/sb/WAP321_Emulators/WAP321_Emulator_v1.0.0.3/help/Wireless05.html
2024-02-14 15:36:04 +06:00
bzglve 13948fff26 #541 fix 2024-02-14 15:19:13 +06:00
Kelly Brazil 6275591ef1 version bump and doc updates 2024-02-12 21:31:10 -08:00
Kelly Brazil 2cdbebb7fd Merge pull request #542 from kellyjonbrazil/dev
Dev v1.25.1
v1.25.1
2024-02-13 00:35:00 +00:00
Kelly Brazil 412f11276a fix sys.path update 2024-02-12 16:18:52 -08:00
Kelly Brazil f3dd51f517 hard-code disabled parser path 2024-02-12 15:53:21 -08:00
Kelly Brazil f66f1aadaa use shlex to correctly split the /proc files in magic_run_command_str 2024-02-12 15:32:38 -08:00
Kelly Brazil 8ead7e4835 rename List class to _List for documentation purposes 2024-02-12 15:05:44 -08:00
Kelly Brazil f1177a2606 add more coverage for --quiet cli option 2024-02-12 11:00:27 -08:00
Kelly Brazil 44dc2a74c1 add test for jc -h 2024-02-12 11:00:02 -08:00
Kevin Lyter d50bd96ce6 [xrandr] Allow props command (#540)
* [xrandr] Allow props command

Responding to issue #525
Somewhat substantial rewriting here to make the parser more resilient
- Change parser to not mutate the incoming data list, instead index
- Create `Line` class and `categorize` classmethod
  - Every line is categorized and regexed, so it gets dispatched to the
  right level of responsibility

* Bump version

---------

Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
2024-02-12 09:03:25 -08:00
Kelly Brazil 5cde127a04 raise ParseError instead of output empty object for disabled parser 2024-02-10 14:58:15 -08:00
Kelly Brazil 63d1cead90 enhance uptime parser for busybox output with no user info 2024-02-10 11:55:19 -08:00
Kelly Brazil d3e7f09ca3 fix for more graceful handling of missing optional libraries 2024-02-10 11:16:38 -08:00
Kelly Brazil e6bdbb42d3 add more ini tests 2024-02-09 19:32:19 -08:00
Kelly Brazil 3cfc5e3e3c fix ini parser for edge cases with non-value keys 2024-02-09 17:13:19 -08:00
Kelly Brazil 082d4a3f80 doc update 2024-02-07 11:53:13 -08:00
Kelly Brazil 158c28455b version bump 2024-02-05 18:30:26 -08:00
Kelly Brazil efb02493b8 remove extra $ from slicing example 2024-02-05 18:22:05 -08:00
Kelly Brazil a319ec85ca doc update v1.25.0 2024-02-06 01:54:31 +00:00
Kelly Brazil e754e88f2d doc update 2024-02-06 01:54:31 +00:00
Kelly Brazil cfa7f267fc update schema 2024-02-06 01:54:31 +00:00
Kelly Brazil c581e959fa formatting 2024-02-06 01:54:31 +00:00
Kelly Brazil 9eb56543be add verbosity check for printing 2024-02-06 01:54:31 +00:00
Kelly Brazil 67643906b1 formatting 2024-02-06 01:54:31 +00:00
Kelly Brazil 14d257225c doc update 2024-02-06 01:54:31 +00:00
Kelly Brazil 0411940f75 add full path to error messages 2024-02-06 01:54:31 +00:00
Kelly Brazil 7d60df67f3 check for missing fixtures 2024-02-06 01:54:31 +00:00
Kelly Brazil 70a971a2f1 formatting 2024-02-06 01:54:31 +00:00
Kelly Brazil 3fbdffd028 efibootmgr updates 2024-02-06 01:54:31 +00:00
yaofei zheng 539fe72d16 add "sudo efibootmgr" (without -v) output test case (#534) 2024-02-06 01:54:31 +00:00
Kelly Brazil bd6611aaba doc updates 2024-02-06 01:54:31 +00:00
Kelly Brazil cf77ddc396 cleanup 2024-02-06 01:54:31 +00:00
Kelly Brazil 77bcd616cd add tests for curl-head and http-headers parsers 2024-02-06 01:54:31 +00:00
yaofei zheng 5ee2eda83e add efibootmgr parser (#528)
* More nsd fixes (#523)

* Update nsd_control.py

support catz output

* Update nsd_control.py

fix parsing of catz zones

* add testdata

add corresponding catz testdata

* Revert "More nsd fixes" (#526)

* add efibootmgr parser

* add efibootmgr completions

* Multiple fixes on jc/parsers/efibootmgr.py

1. Update schema in comments.
1. Add an example.
1. Use clean and clear sub string finding sytax.
1. Wrap schema in an object.
1. Make variable scope as small as possible.

* add tests for efibootmgr

* Update jc/parsers/efibootmgr.py

Update example using `--pretty` for output.

Co-authored-by: Muescha <184316+muescha@users.noreply.github.com>

* jc/parsers/efibootmgr multiple changes

1. convert all keys to "snake_case"
2. add "mirrored_percentage_above_4g" and "mirror_memory_below_4gb"
3. move conversion (from string to other types) to "_process"

---------

Co-authored-by: pettai <pettai@sunet.se>
Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
Co-authored-by: Muescha <184316+muescha@users.noreply.github.com>
2024-02-06 01:54:31 +00:00
Kelly Brazil 5b849b0275 doc update 2024-02-06 01:54:31 +00:00
Kelly Brazil 3e5d206f0c test utils cleanup 2024-02-06 01:54:31 +00:00
Kelly Brazil f50f96381d doc update 2024-02-06 01:54:31 +00:00