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

660 Commits

Author SHA1 Message Date
Kelly Brazil 5bc5596f60 version bump to 1.8.1 2020-03-08 14:49:23 -07:00
Kelly Brazil 2c27ac46be add ls test fixtures 2020-03-08 14:43:51 -07:00
Kelly Brazil caad840153 Merge pull request #44 from philippeitis/patch-5
Move core magic() logic into seperate function for testability, minor tweaks
2020-03-08 14:19:37 -07:00
philippeitis 65bd7e2904 Merge pull request #1 from kellyjonbrazil/pr/44
Merge changes
2020-03-08 14:10:35 -07:00
Kelly Brazil c3d7d7db12 removed whitespace 2020-03-08 14:03:08 -07:00
Kelly Brazil 5605310362 added tests, removed os import, changed to 'assertEqual' 2020-03-08 14:02:54 -07:00
philippeitis 17b6efe82e Create basic tests for generate_magic_commands() 2020-03-08 13:35:01 -07:00
philippeitis a032ae56ae Pass args to generate_magic_command() to allow testing. 2020-03-08 13:26:15 -07:00
philippeitis 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
Kelly Brazil aff86ae6c7 reimpliment magic() based on the dictionary approach suggested by philippeitis 2020-03-08 12:58:26 -07:00
Kelly Brazil 7ece9ddc1a version bump ls 2020-03-07 17:26:42 -08:00
Kelly Brazil 7cd048e839 changelog update 2020-03-07 17:25:10 -08:00
Kelly Brazil 1e22f610a3 fix for osx - doesn't print 'total xx' line if empty directory (issue #40) 2020-03-07 17:22:08 -08:00
Kelly Brazil 5249c972ae add to changelog 2020-03-06 12:09:20 -08:00
Kelly Brazil fd45f856a0 import jc.utils instead of jc 2020-03-06 12:09:09 -08:00
Kelly Brazil c8ab40cd33 ignore .github folder 2020-03-05 09:19:58 -08:00
Kelly Brazil b2c872925b add utf-8 encoding for testing on Windows 2020-03-04 19:47:03 -08:00
Kelly Brazil f48e229202 utf-8 open for windows tests 2020-03-04 19:40:32 -08:00
Kelly Brazil 799fec92c3 utf-8 for windows support 2020-03-04 19:33:45 -08:00
Kelly Brazil 87a41c2fca add utf-8 to open function 2020-03-04 19:30:30 -08:00
Kelly Brazil 7f85de0c46 add windows-latest 2020-03-04 19:28:21 -08:00
Kelly Brazil 13661b1993 Merge pull request #37 from philippeitis/continuous_integration
Enable Continuous Integration with GitHub Actions.
2020-03-04 16:54:26 -08:00
philippeitis 51d5c3892d Remove Windows tests, due to lack of support. 2020-03-04 16:21:06 -08:00
philippeitis e4eab4641a Change line in blkid.py to trigger CI 2020-03-04 16:17:58 -08:00
philippeitis 9b148e0ba3 Add requirements.txt 2020-03-04 16:16:19 -08:00
philippeitis de28932650 Consolidate dictionary into creation, trigger CI 2020-03-04 16:14:03 -08:00
Kelly Brazil 5f798d603e version bump and ack to philippeitis 2020-03-04 16:11:14 -08:00
Kelly Brazil a0757b2dd3 optimize line parsing 2020-03-04 16:07:53 -08:00
philippeitis 498d51b4e8 Enable Continuous Integration with GitHub Actions.
This automatically runs unit tests on various operating systems and Python versions when Python files are modified to ensure that functionality remains correct.
2020-03-04 16:07:32 -08:00
Kelly Brazil b06b6bae3f Merge pull request #36 from philippeitis/patch-3
Simplify process() in history.py, avoid list allocation in parse()
2020-03-04 16:04:05 -08:00
Kelly Brazil 6aa2d5a3d2 Merge pull request #33 from philippeitis/patch-2
Handle case where only options are passed.
2020-03-04 15:28:09 -08:00
philippeitis 065276805f Simplify process() in history.py, avoid list allocation in parse() 2020-03-04 13:35:31 -08:00
philippeitis a63408c8cf Handle case where only options are passed. 2020-03-04 13:16:35 -08:00
Kelly Brazil 69576f6bfa minor sytax fixes 2020-03-04 12:03:40 -08:00
Kelly Brazil 19845624e2 Merge pull request #32 from philippeitis/patch-1
Simplify main(), magic() methods.
2020-03-04 11:59:29 -08:00
philippeitis 22ff2964e9 Simplify main(), magic() methods. 2020-03-04 10:33:42 -08:00
Kelly Brazil d96b3a65a9 formatting 2020-03-04 08:30:52 -08:00
Kelly Brazil 4989445ef4 Merge pull request #30 from kellyjonbrazil/dev
Dev v1.8.0
v1.8.0
2020-03-03 11:46:09 -08:00
Kelly Brazil 6770892acd add release notes link 2020-03-03 11:37:59 -08:00
Kelly Brazil d4eba8740f release date 3/3 2020-03-03 11:08:52 -08:00
Kelly Brazil 9f60760560 add group and gshadow tests 2020-03-03 10:54:27 -08:00
Kelly Brazil 0a8f8ac934 add group and gshadow parsers 2020-03-03 09:55:43 -08:00
Kelly Brazil 6ae24c8244 add group and gshadow test fixtures 2020-03-03 09:55:17 -08:00
Kelly Brazil d3679082a8 add group and gshadow parsers 2020-03-03 09:36:16 -08:00
Kelly Brazil fb08b42dca change 'group_list' to 'members' 2020-03-03 09:32:56 -08:00
Kelly Brazil 4aeaa9f42a add /etc/gshadow parser 2020-03-03 09:32:25 -08:00
Kelly Brazil 5f5693da04 spelling fix 2020-03-03 09:07:28 -08:00
Kelly Brazil 5eb0f61727 add /etc/group file parser 2020-03-03 09:07:09 -08:00
Kelly Brazil 958e998991 formatting 2020-03-02 17:15:05 -08:00
Kelly Brazil b78c1509f6 try/except dialect detection 2020-03-02 15:06:25 -08:00