mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
fix package paths
This commit is contained in:
12
jc/jc
12
jc/jc
@ -6,9 +6,9 @@ Main input module
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
import parsers.ifconfig
|
import jc.parsers.ifconfig
|
||||||
import parsers.ls
|
import jc.parsers.ls
|
||||||
import parsers.netstat
|
import jc.parsers.netstat
|
||||||
|
|
||||||
pretty = False
|
pretty = False
|
||||||
data = sys.stdin.read()
|
data = sys.stdin.read()
|
||||||
@ -26,11 +26,11 @@ if len(sys.argv) > 2:
|
|||||||
pretty = True
|
pretty = True
|
||||||
|
|
||||||
if arg == '--ifconfig':
|
if arg == '--ifconfig':
|
||||||
result = parsers.ifconfig.parse(data)
|
result = jc.parsers.ifconfig.parse(data)
|
||||||
elif arg == '--ls':
|
elif arg == '--ls':
|
||||||
result = parsers.ls.parse(data)
|
result = jc.parsers.ls.parse(data)
|
||||||
elif arg == '--netstat':
|
elif arg == '--netstat':
|
||||||
result = parsers.netstat.parse(data)
|
result = jc.parsers.netstat.parse(data)
|
||||||
|
|
||||||
# output resulting dictionary as json
|
# output resulting dictionary as json
|
||||||
if pretty:
|
if pretty:
|
||||||
|
Reference in New Issue
Block a user