1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2026-04-03 17:44:07 +02:00

Compare commits

...

3 Commits

Author SHA1 Message Date
Kelly Brazil
3f9164ea77 bold formatting 2020-05-23 21:11:17 -07:00
Kelly Brazil
7fd6fecbf5 formatting 2020-05-23 21:09:49 -07:00
Kelly Brazil
8029f72363 change osx_flags from integer to string 2020-05-23 21:09:40 -07:00
7 changed files with 11 additions and 8 deletions

View File

@@ -66,7 +66,7 @@ Schemas for each parser can be found in the [`docs/parsers`](https://github.com/
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/).
**Why would anyone do this?!** 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`, `brew`, DEB or RPM packages, or by downloading the correct binary for your architecture and running it anywhere on your filesystem.

View File

@@ -1,5 +1,8 @@
jc changelog
20200523 v1.11.1
- Update stat command parser to change osx_flags field to string
20200522 v1.11.0
- Add dmidecode command parser
- Update stat command parser to add OSX support

View File

@@ -145,7 +145,7 @@ Returns:
"osx_device": integer,
"rdev": integer,
"block_size": integer,
"osx_flags": integer
"osx_flags": string
}
]

View File

@@ -17,7 +17,7 @@ import jc.utils
class info():
version = '1.11.0'
version = '1.11.1'
description = 'jc cli output JSON conversion tool'
author = 'Kelly Brazil'
author_email = 'kellyjonbrazil@gmail.com'

View File

@@ -105,7 +105,7 @@ import jc.utils
class info():
version = '1.2'
version = '1.3'
description = 'stat command parser'
author = 'Kelly Brazil'
author_email = 'kellyjonbrazil@gmail.com'
@@ -154,12 +154,12 @@ def process(proc_data):
"osx_device": integer,
"rdev": integer,
"block_size": integer,
"osx_flags": integer
"osx_flags": string
}
]
"""
for entry in proc_data:
int_list = ['size', 'blocks', 'io_blocks', 'inode', 'links', 'uid', 'gid', 'osx_device', 'rdev', 'block_size', 'osx_flags']
int_list = ['size', 'blocks', 'io_blocks', 'inode', 'links', 'uid', 'gid', 'osx_device', 'rdev', 'block_size']
for key in int_list:
if key in entry:
try:

View File

@@ -5,7 +5,7 @@ with open('README.md', 'r') as f:
setuptools.setup(
name='jc',
version='1.11.0',
version='1.11.1',
author='Kelly Brazil',
author_email='kellyjonbrazil@gmail.com',
description='Converts the output of popular command-line tools and file-types to JSON.',

File diff suppressed because one or more lines are too long