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:
@ -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
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -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'
|
||||||
|
@ -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:
|
||||||
|
2
setup.py
2
setup.py
@ -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.',
|
||||||
|
2
tests/fixtures/osx-10.14.6/stat.json
vendored
2
tests/fixtures/osx-10.14.6/stat.json
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user