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 json
import jc.parsers.ifconfig
import jc.parsers.ls
import jc.parsers.netstat
from parsers import ifconfig
from parsers import ls
from parsers import netstat
def main():
pretty = False
@ -27,11 +27,11 @@ def main():
pretty = True
if arg == '--ifconfig':
result = jc.parsers.ifconfig.parse(data)
result = ifconfig.parse(data)
elif arg == '--ls':
result = jc.parsers.ls.parse(data)
result = ls.parse(data)
elif arg == '--netstat':
result = jc.parsers.netstat.parse(data)
result = netstat.parse(data)
# output resulting dictionary as json
if pretty:

View File

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