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

3595 Commits

Author SHA1 Message Date
83440ccb55 error message capitalization 2021-05-13 08:02:38 -07:00
796f61bfa4 handle case where the user pipes data and uses magic syntax simultaneously 2021-05-12 17:01:09 -07:00
070cac4ae1 remove commented line 2021-05-12 15:36:06 -07:00
3ed84f9f42 reorganize main function. remove pass condition. 2021-05-12 15:19:11 -07:00
a205afb6f3 set run_command_str if run_command is set 2021-05-12 13:44:15 -07:00
a6d983dd8f move run_command_str variable 2021-05-12 13:38:08 -07:00
b6c8d6d01d add exception handling for filenotfound or other subprocess.popen and json.dumps exceptions 2021-05-12 13:18:58 -07:00
b5a5d5b133 set parser_name for magic syntax use 2021-05-12 11:36:27 -07:00
da528e7814 move separators to a variable 2021-05-12 09:40:22 -07:00
4acebf4f62 move variables 2021-05-12 08:48:49 -07:00
4d40808d2b update comments 2021-05-12 08:27:39 -07:00
c543f00bd3 simplify piped_output function 2021-05-11 14:30:46 -07:00
947cf41dfa add exit code info 2021-05-11 12:42:21 -07:00
8d8c58742e formatting 2021-05-11 11:32:08 -07:00
995ecc9bfb add exit codes section 2021-05-11 11:11:17 -07:00
21a15225eb add exit codes section 2021-05-11 10:59:26 -07:00
48921d4584 ensure exit code never exceeds 255 2021-05-11 10:50:35 -07:00
342db45edc fix combined exit codes 2021-05-11 10:36:55 -07:00
5f88ecf844 add comments to magic_parser return 2021-05-10 21:23:23 -07:00
a56aebfe70 remove side-effect comment since it is no longer relevant 2021-05-10 21:09:00 -07:00
422bb744a8 update man pages 2021-05-10 21:03:30 -07:00
c3b814a15f move imports to the top 2021-05-10 21:02:28 -07:00
e4574047a0 update tests for magic_parser function 2021-05-10 20:49:44 -07:00
0d7d7951f8 don't reset sys.argv anymore. check for 'valid_command' instead 2021-05-10 18:58:45 -07:00
da904e4770 remove final \n from stderr string when printing 2021-05-10 18:50:59 -07:00
19b540041a proof of concept for passing command exit codes when using magic syntax. Needs more testing 2021-05-10 18:31:30 -07:00
f2ffb93eea formatting 2021-05-10 10:43:40 -07:00
c0c0e05642 add dig +noall +answer support 2021-05-10 10:40:13 -07:00
966978f17e add more unparsable line ping tests 2021-05-10 10:39:51 -07:00
8ab08a5231 doc update 2021-05-10 10:13:52 -07:00
48e534fa03 add +noall +answer test 2021-05-07 16:55:18 -07:00
61851c1bd0 add support for +noall +answer 2021-05-07 16:42:09 -07:00
3c51b2d83d add tests for unparsable lines on linux 2021-05-07 13:50:28 -07:00
ee3a28528e Merge branch 'dev' of https://github.com/kellyjonbrazil/jc into dev
# Conflicts:
#	templates/readme_template
2021-05-05 10:03:58 -07:00
916bcdae38 Merge pull request #136 from kellyjonbrazil/master
merge changes from master
2021-05-05 10:02:25 -07:00
efb1d3e6b2 add blog title and minor formatting 2021-05-05 09:23:21 -07:00
4e6ae66bac formatting 2021-05-05 09:20:47 -07:00
5ee88e7b67 add use cases section 2021-05-05 09:18:45 -07:00
c3b68903cb add use cases section 2021-05-05 09:17:11 -07:00
fe1f1013a7 add use cases section 2021-05-05 09:16:05 -07:00
fb14f5439f fix and tests for unknown or unparsable errors 2021-05-05 08:03:27 -07:00
5ca0fc364e add unparsed_line to docs 2021-05-04 19:05:20 -07:00
a1fe7037e5 add unparsed_line field if line cannot be parsed 2021-05-04 19:04:16 -07:00
c2af7d113e add ping updates 2021-05-04 15:35:47 -07:00
ff034e401d use try/except to make parser more resilient against unknown error types 2021-05-04 15:34:45 -07:00
5abe095beb update ping docs 2021-05-03 15:26:16 -07:00
33de5f01e6 version bump 2021-05-03 15:16:47 -07:00
8ce155d843 add support for error replies in v4 ping on osx and bsd 2021-05-03 15:16:33 -07:00
b921d5ec95 initial support for error replies in bsd/osx 2021-04-30 16:53:52 -07:00
e21542aaa2 Merge pull request #135 from kellyjonbrazil/dev
Dev clarify packaged binaries in readme
2021-04-30 10:31:55 -07:00