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

3713 Commits

Author SHA1 Message Date
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
6434ff61bf add HTTP header datetime format 2024-02-06 01:54:31 +00:00
45a1be11e2 doc update 2024-02-06 01:54:31 +00:00
7659fe470a formatting 2024-02-06 01:54:31 +00:00
c332c4febf draft for path and path_list (#513)
* draft for path_list

* updaate doc

* add input check

* fix types

* fix schema: add missing properties

* add _process

* fix _process docs

* refactor: extract path.py parser

* swap order of names alphabetically

* documentation and comments

* path parser: add early return for nodata

* path and path-list parser: add test and fixtures

* typo in file name

* add early return for nodata

* add test and fixtures

* typo in file name

* rename fixtures

* rename fixtures

* refactor to pathlib.Path

* failing on windows - use PurePosixPath

* changed the way to strip dot from suffix

* add POSIX to path

* test commit to see results on windows is failing

* test commit to see results on windows is failing

* add windows path detection

* somehow Path not like the newline from input line

* add test with more items

* remove debug print

* wrap test loops into into subTest

* remove print statements

* add path and path-list to CHANGELOG

---------

Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
2024-02-06 01:54:31 +00:00
2cc212bfab use convert_size_to_int() from utils 2024-02-06 01:54:31 +00:00
b836ffc583 add tests for convert_size_to_int() 2024-02-06 01:54:31 +00:00
29f1a1d425 fix proc doc - output is dict or list of dicts 2024-02-06 01:54:31 +00:00
9f78dc6afa proc parser doc update 2024-02-06 01:54:31 +00:00
74c7e11948 doc update 2024-02-06 01:54:31 +00:00
6ba6dc0374 version bump 2024-02-06 01:54:31 +00:00
ec0f2569e5 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
2024-02-06 01:54:31 +00:00
65e30c4440 doc update 2024-02-06 01:54:31 +00:00
8d9ebf5dfa doc update 2024-02-06 01:54:31 +00:00
c3746454ff doc update 2024-02-06 01:54:31 +00:00
ea0f6493a2 update contributing guide 2024-02-06 01:54:31 +00:00
afbc46076e add ping tests 2024-02-06 01:54:31 +00:00
2b9b6550a7 Fix data_bytes is null in ping -I option (#520)
* fixed header parsing when specifying ping interface

* add source_ip parsing test for ping/ping-s

---------

Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
2024-02-06 01:54:31 +00:00
6fb3c0a409 doc update 2024-02-06 01:54:31 +00:00
1b8911ad36 add slurp docs 2024-02-06 01:54:31 +00:00
cc61b57dd1 add blank line tests to slicer 2024-02-06 01:54:31 +00:00
6d679b2895 doc update 2024-02-06 01:54:31 +00:00
1e1fc08a47 doc update 2024-02-06 01:54:31 +00:00
b5c3a03d56 implement slurp by wrapping in a list, adding "_file" for /proc, and further wrapping in {"result": data} when --meta-out is used. 2024-02-06 01:54:31 +00:00
9e269f070f update slice help doc 2024-02-06 01:54:31 +00:00
f863cfdef4 fix for slicing blank lines 2024-02-06 01:54:31 +00:00
2cd58d75e7 make parser_shortname more robust 2024-02-06 01:54:31 +00:00
03b70eebb7 make /proc slurpable with magic syntax 2024-02-06 01:54:31 +00:00
1e76ce2aea doc update 2024-02-06 01:54:31 +00:00
d9fc1b4242 doc update 2024-02-06 01:54:31 +00:00
36a3d2e96d crontab remove double entry in doc (#518) 2024-02-06 01:54:31 +00:00
bf05de1d63 doc update 2024-02-06 01:54:31 +00:00
cae41df1d8 add get_parser tests 2024-02-06 01:54:31 +00:00
8e9ff7fa9f refactor to use get_parser() 2024-02-06 01:54:31 +00:00
973c535c72 extract to public jc.get_parser(parser_name) (#516)
* remove unused imports and RegEx

* extract to public jc.get_parser(parser_name)

* changed order of exports

* add doc

* add doc.md

* remove data_dir from doc.md

---------

Co-authored-by: Kelly Brazil <kellyjonbrazil@gmail.com>
2024-02-06 01:54:31 +00:00
8614d3dde9 remove unused imports and RegEx (#515) 2024-02-06 01:54:31 +00:00
a73ee47bcf move slurp error message so it will work for all parser types 2024-02-06 01:54:31 +00:00
d54a81831f update slicer to use utils.line_slice() 2024-02-06 01:54:31 +00:00
73ae1396b9 enhance slurp error message 2024-02-06 01:54:31 +00:00
3399e8551e add slurpable_parser_mod_list test 2024-02-06 01:54:31 +00:00
b9656c2fae add line_slice tests 2024-02-06 01:54:31 +00:00
e08ccb7942 add slurp test. fix cli_json_out_pretty test 2024-02-06 01:54:31 +00:00