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

add hosts parser

This commit is contained in:
Kelly Brazil
2019-11-14 21:31:25 -08:00
parent 1cb49d60c8
commit 64016b8ef0
2 changed files with 92 additions and 0 deletions

View File

@ -14,6 +14,7 @@ import jc.parsers.dig
import jc.parsers.env
import jc.parsers.free
import jc.parsers.history
import jc.parsers.hosts
import jc.parsers.ifconfig
import jc.parsers.iptables
import jc.parsers.jobs
@ -49,6 +50,7 @@ def helptext(message):
--env env parser
--free free parser
--history history parser
--hosts /etc/hosts file parser
--ifconfig iconfig parser
--iptables iptables parser
--jobs jobs parser
@ -112,6 +114,7 @@ def main():
'--env': jc.parsers.env.parse,
'--free': jc.parsers.free.parse,
'--history': jc.parsers.history.parse,
'--hosts': jc.parsers.hosts.parse,
'--ifconfig': jc.parsers.ifconfig.parse,
'--iptables': jc.parsers.iptables.parse,
'--jobs': jc.parsers.jobs.parse,