mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
add systemctl_lj, lm, ls, and luf
This commit is contained in:
11
jc/cli.py
11
jc/cli.py
@ -30,6 +30,9 @@ import jc.parsers.route
|
||||
import jc.parsers.ss
|
||||
import jc.parsers.stat
|
||||
import jc.parsers.systemctl
|
||||
# import jc.parsers.systemctl_lj
|
||||
# import jc.parsers.systemctl_lm
|
||||
import jc.parsers.systemctl_ls
|
||||
import jc.parsers.systemctl_luf
|
||||
import jc.parsers.uname
|
||||
import jc.parsers.uptime
|
||||
@ -69,7 +72,10 @@ def helptext(message):
|
||||
--ss ss parser
|
||||
--stat stat parser
|
||||
--systemctl systemctl parser
|
||||
--systemctl-luf systemctl parser
|
||||
--systemctl-lj systemctl list-jobs parser
|
||||
--systemctl-lm systemctl list-machines parser
|
||||
--systemctl-ls systemctl list-sockets parser
|
||||
--systemctl-luf systemctl list-unit-files parser
|
||||
--uname uname -a parser
|
||||
--uptime uptime parser
|
||||
--w w parser
|
||||
@ -136,6 +142,9 @@ def main():
|
||||
'--ss': jc.parsers.ss.parse,
|
||||
'--stat': jc.parsers.stat.parse,
|
||||
'--systemctl': jc.parsers.systemctl.parse,
|
||||
# '--systemctl-lj': jc.parsers.systemctl_lj.parse,
|
||||
# '--systemctl-lm': jc.parsers.systemctl_lm.parse,
|
||||
'--systemctl-ls': jc.parsers.systemctl_ls.parse,
|
||||
'--systemctl-luf': jc.parsers.systemctl_luf.parse,
|
||||
'--uname': jc.parsers.uname.parse,
|
||||
'--uptime': jc.parsers.uptime.parse,
|
||||
|
Reference in New Issue
Block a user