1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

change osx_flags from integer to string

This commit is contained in:
Kelly Brazil
2020-05-23 21:09:40 -07:00
parent c7fdce5d3b
commit 8029f72363
6 changed files with 10 additions and 7 deletions

View File

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

View File

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

View File

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

View File

@ -105,7 +105,7 @@ import jc.utils
class info(): class info():
version = '1.2' version = '1.3'
description = 'stat command parser' description = 'stat command parser'
author = 'Kelly Brazil' author = 'Kelly Brazil'
author_email = 'kellyjonbrazil@gmail.com' author_email = 'kellyjonbrazil@gmail.com'
@ -154,12 +154,12 @@ def process(proc_data):
"osx_device": integer, "osx_device": integer,
"rdev": integer, "rdev": integer,
"block_size": integer, "block_size": integer,
"osx_flags": integer "osx_flags": string
} }
] ]
""" """
for entry in proc_data: 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: for key in int_list:
if key in entry: if key in entry:
try: try:

View File

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