1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2026-04-05 17:50:11 +02:00

Compare commits

..

10 Commits

Author SHA1 Message Date
Kelly Brazil
b7756d9250 version bump 2020-04-20 16:33:26 -07:00
Kelly Brazil
1cd2cd954c remove references to homebrew/shim to allow tests to pass in homebrew packaging ci/cd 2020-04-20 16:31:22 -07:00
Kelly Brazil
72020b8da9 move packages info to jc-packages github page 2020-04-17 10:20:25 -07:00
Kelly Brazil
cf9720b749 update install info 2020-04-16 14:03:31 -07:00
Kelly Brazil
967b9db7f9 spelling 2020-04-15 21:27:22 -07:00
Kelly Brazil
bb3acb1182 formatting 2020-04-15 21:25:06 -07:00
Kelly Brazil
560c7f7e6d formatting 2020-04-15 21:23:55 -07:00
Kelly Brazil
79b2841764 add new binary package install info 2020-04-15 21:22:43 -07:00
Kelly Brazil
a06a89cbd1 version bump 2020-04-14 11:15:24 -07:00
Kelly Brazil
431bd969eb use sys.exit(0) instead of exit() 2020-04-14 11:10:31 -07:00
8 changed files with 18 additions and 20 deletions

View File

@@ -69,10 +69,16 @@ Release notes can be found [here](https://blog.kellybrazil.com/category/jc-news/
For more information on the motivations for this project, please see my [blog post](https://blog.kellybrazil.com/2019/11/26/bringing-the-unix-philosophy-to-the-21st-century/).
## Installation
There are several ways to get `jc`. You can install via `pip`, `deb` or `rpm` packages, or by downloading the correct binary for your architecture and running it anywhere on your filesystem.
### Pip (macOS, linux, unix, Windows)
```
$ pip3 install --upgrade jc
```
### Packages and Binaries
Please see https://kellyjonbrazil.github.io/jc-packaging/ for details
## Usage
`jc` accepts piped input from `STDIN` and outputs a JSON representation of the previous command's output to `STDOUT`.
```

View File

@@ -1,5 +1,11 @@
jc changelog
20200420 v1.10.6
- Remove homebrew shim references from du osx tests
20200414 v1.10.5
- Minor change of using sys.exit(0) instead of exit()
20200412 v1.10.4
- Add color customization via JC_COLORS env variable

View File

@@ -18,7 +18,7 @@ import jc.utils
class info():
version = '1.10.4'
version = '1.10.6'
description = 'jc cli output JSON conversion tool'
author = 'Kelly Brazil'
author_email = 'kellyjonbrazil@gmail.com'
@@ -322,7 +322,7 @@ def magic():
valid_command, run_command = generate_magic_command(sys.argv)
if valid_command:
os.system(run_command)
exit()
sys.exit(0)
elif run_command is None:
return
else:
@@ -358,7 +358,7 @@ def main():
if 'a' in options:
json_out(about_jc(), pretty=pretty, mono=mono, piped_out=piped_output())
exit()
sys.exit(0)
if sys.stdin.isatty():
helptext('missing piped data')

View File

@@ -5,7 +5,7 @@ with open('README.md', 'r') as f:
setuptools.setup(
name='jc',
version='1.10.4',
version='1.10.6',
author='Kelly Brazil',
author_email='kellyjonbrazil@gmail.com',
description='This tool serializes the output of popular command line tools and filetypes to structured JSON output.',

File diff suppressed because one or more lines are too long

View File

@@ -911,13 +911,6 @@
112 /usr/local/Homebrew/Library/Homebrew/rubocops/cask
40 /usr/local/Homebrew/Library/Homebrew/rubocops/extend
344 /usr/local/Homebrew/Library/Homebrew/rubocops
288 /usr/local/Homebrew/Library/Homebrew/shims/linux/super
288 /usr/local/Homebrew/Library/Homebrew/shims/linux
344 /usr/local/Homebrew/Library/Homebrew/shims/mac/super
344 /usr/local/Homebrew/Library/Homebrew/shims/mac
16 /usr/local/Homebrew/Library/Homebrew/shims/scm
280 /usr/local/Homebrew/Library/Homebrew/shims/super
928 /usr/local/Homebrew/Library/Homebrew/shims
24 /usr/local/Homebrew/Library/Homebrew/test/cask/artifact/shared_examples
144 /usr/local/Homebrew/Library/Homebrew/test/cask/artifact
24 /usr/local/Homebrew/Library/Homebrew/test/cask/cask_loader

File diff suppressed because one or more lines are too long

View File

@@ -317,13 +317,6 @@
32 /usr/local/Homebrew/Library/Homebrew/cli
56 /usr/local/Homebrew/Library/Homebrew/manpages
8 /usr/local/Homebrew/Library/Homebrew/version
64 /usr/local/Homebrew/Library/Homebrew/shims/mac/super
64 /usr/local/Homebrew/Library/Homebrew/shims/mac
24 /usr/local/Homebrew/Library/Homebrew/shims/super
8 /usr/local/Homebrew/Library/Homebrew/shims/linux/super
8 /usr/local/Homebrew/Library/Homebrew/shims/linux
8 /usr/local/Homebrew/Library/Homebrew/shims/scm
104 /usr/local/Homebrew/Library/Homebrew/shims
8 /usr/local/Homebrew/Library/Homebrew/debrew
56 /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.8
24 /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.6