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

fix modules

This commit is contained in:
Kelly Brazil
2019-10-16 15:54:20 -07:00
parent 46d6da92f0
commit 62851b48d5
2 changed files with 7 additions and 7 deletions

View File

@ -6,9 +6,9 @@ Main input module
import sys import sys
import json import json
import jc.parsers.ifconfig from parsers import ifconfig
import jc.parsers.ls from parsers import ls
import jc.parsers.netstat from parsers import netstat
def main(): def main():
pretty = False pretty = False
@ -27,11 +27,11 @@ def main():
pretty = True pretty = True
if arg == '--ifconfig': if arg == '--ifconfig':
result = jc.parsers.ifconfig.parse(data) result = ifconfig.parse(data)
elif arg == '--ls': elif arg == '--ls':
result = jc.parsers.ls.parse(data) result = ls.parse(data)
elif arg == '--netstat': elif arg == '--netstat':
result = jc.parsers.netstat.parse(data) result = netstat.parse(data)
# output resulting dictionary as json # output resulting dictionary as json
if pretty: if pretty:

View File

@ -19,7 +19,7 @@ setuptools.setup(
packages=setuptools.find_packages(), packages=setuptools.find_packages(),
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [
'jc=jc:main', 'jc=jc.py:main',
], ],
}, },
classifiers=[ classifiers=[