1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00
Commit Graph

3754 Commits

Author SHA1 Message Date
6275591ef1 version bump and doc updates 2024-02-12 21:31:10 -08:00
2cdbebb7fd Merge pull request #542 from kellyjonbrazil/dev
Dev v1.25.1
v1.25.1
2024-02-13 00:35:00 +00:00
412f11276a fix sys.path update 2024-02-12 16:18:52 -08:00
f3dd51f517 hard-code disabled parser path 2024-02-12 15:53:21 -08:00
f66f1aadaa use shlex to correctly split the /proc files in magic_run_command_str 2024-02-12 15:32:38 -08:00
8ead7e4835 rename List class to _List for documentation purposes 2024-02-12 15:05:44 -08:00
f1177a2606 add more coverage for --quiet cli option 2024-02-12 11:00:27 -08:00
44dc2a74c1 add test for jc -h 2024-02-12 11:00:02 -08:00
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
5cde127a04 raise ParseError instead of output empty object for disabled parser 2024-02-10 14:58:15 -08:00
63d1cead90 enhance uptime parser for busybox output with no user info 2024-02-10 11:55:19 -08:00
d3e7f09ca3 fix for more graceful handling of missing optional libraries 2024-02-10 11:16:38 -08:00
e6bdbb42d3 add more ini tests 2024-02-09 19:32:19 -08:00
3cfc5e3e3c fix ini parser for edge cases with non-value keys 2024-02-09 17:13:19 -08:00
082d4a3f80 doc update 2024-02-07 11:53:13 -08:00
158c28455b version bump 2024-02-05 18:30:26 -08:00
efb02493b8 remove extra $ from slicing example 2024-02-05 18:22:05 -08:00
a319ec85ca doc update v1.25.0 2024-02-06 01:54:31 +00:00
e754e88f2d doc update 2024-02-06 01:54:31 +00:00
cfa7f267fc update schema 2024-02-06 01:54:31 +00:00
c581e959fa formatting 2024-02-06 01:54:31 +00:00
9eb56543be add verbosity check for printing 2024-02-06 01:54:31 +00:00
67643906b1 formatting 2024-02-06 01:54:31 +00:00
14d257225c doc update 2024-02-06 01:54:31 +00:00
0411940f75 add full path to error messages 2024-02-06 01:54:31 +00:00
7d60df67f3 check for missing fixtures 2024-02-06 01:54:31 +00:00
70a971a2f1 formatting 2024-02-06 01:54:31 +00:00
3fbdffd028 efibootmgr updates 2024-02-06 01:54:31 +00:00
539fe72d16 add "sudo efibootmgr" (without -v) output test case (#534) 2024-02-06 01:54:31 +00:00
bd6611aaba doc updates 2024-02-06 01:54:31 +00:00
cf77ddc396 cleanup 2024-02-06 01:54:31 +00:00
77bcd616cd add tests for curl-head and http-headers parsers 2024-02-06 01:54:31 +00:00
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
5b849b0275 doc update 2024-02-06 01:54:31 +00:00
3e5d206f0c test utils cleanup 2024-02-06 01:54:31 +00:00
f50f96381d doc update 2024-02-06 01:54:31 +00:00
962632ac1f Feature: generic fixtures tests (#529)
* add generic test runners

* extract generic test runners

* beautify messages, remove unused return value

* add template and info do CONTRIBUTING

* typo

---------

Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
2024-02-06 01:54:31 +00:00
d209780a9d only add timestamp field if datetime string is parsable 2024-02-06 01:54:31 +00:00
8e5451a7c1 fix for datetime or integer fields 2024-02-06 01:54:31 +00:00
86a09c17cf remove unused _process function 2024-02-06 01:54:31 +00:00
4bb85195e2 doc update 2024-02-06 01:54:31 +00:00
39f43aad63 add http_headers and curl_head parsers 2024-02-06 01:54:31 +00:00
29689f7603 formatting 2024-02-06 01:54:31 +00:00
78d7ab1308 add info about documentation and completions (#531) 2024-02-06 01:54:31 +00:00
303cd12de3 version bump to v1.25.0 2024-02-06 01:54:31 +00:00
b65f37e075 add normalize_key() function and tests 2024-02-06 01:54:31 +00:00
c05fa7e9cd add remove_quotes() to utils and use in ini parsers 2024-02-06 01:54:31 +00:00
264272a8b8 doc update 2024-02-06 01:54:31 +00:00
7fadb23fea use convert_size_to_int() 2024-02-06 01:54:31 +00:00
c419e460db doc update 2024-02-06 01:54:31 +00:00