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

124 Commits

Author SHA1 Message Date
8b6612fe79 move JC_COLORS parsing error message 2020-06-30 07:56:34 -07:00
ef5482c3b5 add verbose debug option 2020-06-25 07:29:28 -07:00
22aee1bfa4 version bump 2020-06-22 11:23:15 -07:00
cc0f0971d7 Improve and standardize empty data check for all parsers 2020-06-14 17:17:40 -07:00
83f41b83dc version bump 2020-06-12 12:30:19 -07:00
3e052d1810 version bump 2020-06-10 05:53:20 -07:00
f6478fb636 version bump 2020-06-09 11:18:47 -07:00
54e4c447ab clean up formatting 2020-06-07 12:52:16 -07:00
937a9fa9cf vendorize appdirs module 2020-06-07 12:41:50 -07:00
9f2279d586 Load custom parsers from <user_data_dir>/jc/jcparsers 2020-06-06 14:42:27 -04:00
af34153ffa version bump 2020-05-30 15:48:56 -07:00
8029f72363 change osx_flags from integer to string 2020-05-23 21:09:40 -07:00
84f48aa369 version bump 2020-05-22 16:30:22 -07:00
e9282bb546 add dmidecode parser 2020-05-13 08:22:52 -07:00
f5627a4594 version bump 2020-05-11 11:03:02 -07:00
81ffdb2510 remove shebang for Fedora packaging 2020-05-11 10:54:26 -07:00
4c00a99850 version bump 2020-05-11 10:37:14 -07:00
2bfcb45b28 make cli.py executable 2020-05-11 10:32:42 -07:00
98b97509f7 version bump 2020-05-09 11:25:13 -07:00
99070fa607 version bump 2020-05-08 10:51:13 -07:00
b7dd6441c7 version bump 2020-05-08 08:20:33 -07:00
d13606b6dc modify dependencies for easier packaging into Fedora 2020-05-01 14:37:23 -07:00
b7756d9250 version bump 2020-04-20 16:33:26 -07:00
a06a89cbd1 version bump 2020-04-14 11:15:24 -07:00
431bd969eb use sys.exit(0) instead of exit() 2020-04-14 11:10:31 -07:00
07b8d9e0c0 version bump 2020-04-12 13:18:28 -07:00
421b980957 JC_COLORS working 2020-04-12 13:03:09 -07:00
4a22e27d6a add set_env_colors function 2020-04-12 12:43:51 -07:00
99f7842dee fix brek on pipe error 2020-04-09 13:38:33 -07:00
7f869b4b18 change colors to ansi and match jello style 2020-04-09 07:31:21 -07:00
3f5279b97c version bump to 1.10.1 2020-04-04 17:25:55 -07:00
302f05cdda prettify style block 2020-04-03 14:50:20 -07:00
c0044be7b0 rename color grey to gray 2020-04-03 14:48:19 -07:00
c8b721d4f6 version bump to 1.10.0 2020-04-02 17:35:35 -07:00
d0bfddc3d9 add color and -m monochrome option 2020-04-02 17:29:25 -07:00
93aa390447 version bump to v1.9.3 2020-03-26 16:30:17 -07:00
c028113561 version bump to v1.9.2 2020-03-12 17:06:55 -07:00
c29e7cfe5c version bump to 1.9.1 2020-03-12 08:17:28 -07:00
a2ab5bab91 version bump to v1.9.0 2020-03-11 13:32:58 -07:00
dfc9618115 add file parser for issue #41 2020-03-11 12:20:58 -07:00
8e02e5c75a fix issue with getting options with some commands #47 2020-03-11 09:21:14 -07:00
12a370deed add airport -s parser for issue #46 2020-03-10 21:51:02 -07:00
c6c9e06496 added airport command parser 2020-03-10 20:35:52 -07:00
99804ea06e added timedatectl status parser 2020-03-10 18:37:55 -07:00
2c3e9ddfe4 add ntpq parser for issue #31 2020-03-10 14:18:55 -07:00
5bc5596f60 version bump to 1.8.1 2020-03-08 14:49:23 -07:00
c3d7d7db12 removed whitespace 2020-03-08 14:03:08 -07:00
a032ae56ae Pass args to generate_magic_command() to allow testing. 2020-03-08 13:26:15 -07:00
eab2f4b056 Move core magic() logic into seperate function for testability, minor tweaks.
We only care about the command when testing magic() - by moving that out, we can easily test the command. I modified the code to return a boolean signalling that the command is valid, and the command itself to maintain the original functionality.

I also made some small tweaks (removed a list() call, fixed a possible bug with no arguments., moved magic_dict instantiation past the fast path checks to avoid making a dict if not needed.)
2020-03-08 13:20:38 -07:00
aff86ae6c7 reimpliment magic() based on the dictionary approach suggested by philippeitis 2020-03-08 12:58:26 -07:00