mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
update docs
This commit is contained in:
@ -14,53 +14,48 @@ Examples:
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"destination": "default",
|
"destination": "default",
|
||||||
"gateway": "gateway",
|
"gateway": "_gateway",
|
||||||
"genmask": "0.0.0.0",
|
"genmask": "0.0.0.0",
|
||||||
"flags": "UG",
|
"flags": "UG",
|
||||||
"metric": 100,
|
"metric": 202,
|
||||||
"ref": 0,
|
"ref": 0,
|
||||||
"use": 0,
|
"use": 0,
|
||||||
"iface": "ens33",
|
"iface": "ens33",
|
||||||
"mss": 0,
|
"mss": 0,
|
||||||
"window": 0,
|
"window": 0,
|
||||||
"irtt": 0
|
"irtt": 0,
|
||||||
},
|
"flags_pretty": [
|
||||||
{
|
"UP",
|
||||||
"destination": "172.17.0.0",
|
"GATEWAY"
|
||||||
"gateway": "0.0.0.0",
|
]
|
||||||
"genmask": "255.255.0.0",
|
|
||||||
"flags": "U",
|
|
||||||
"metric": 0,
|
|
||||||
"ref": 0,
|
|
||||||
"use": 0,
|
|
||||||
"iface": "docker",
|
|
||||||
"mss": 0,
|
|
||||||
"window": 0,
|
|
||||||
"irtt": 0
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"destination": "192.168.71.0",
|
"destination": "192.168.71.0",
|
||||||
"gateway": "0.0.0.0",
|
"gateway": "0.0.0.0",
|
||||||
"genmask": "255.255.255.0",
|
"genmask": "255.255.255.0",
|
||||||
"flags": "U",
|
"flags": "U",
|
||||||
"metric": 100,
|
"metric": 202,
|
||||||
"ref": 0,
|
"ref": 0,
|
||||||
"use": 0,
|
"use": 0,
|
||||||
"iface": "ens33",
|
"iface": "ens33",
|
||||||
"mss": 0,
|
"mss": 0,
|
||||||
"window": 0,
|
"window": 0,
|
||||||
"irtt": 0
|
"irtt": 0,
|
||||||
|
"flags_pretty": [
|
||||||
|
"UP"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
$ route -ee | jc --route -p -r
|
$ route -ee | jc --route -p -r
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"destination": "default",
|
"destination": "default",
|
||||||
"gateway": "gateway",
|
"gateway": "_gateway",
|
||||||
"genmask": "0.0.0.0",
|
"genmask": "0.0.0.0",
|
||||||
"flags": "UG",
|
"flags": "UG",
|
||||||
"metric": "100",
|
"metric": "202",
|
||||||
"ref": "0",
|
"ref": "0",
|
||||||
"use": "0",
|
"use": "0",
|
||||||
"iface": "ens33",
|
"iface": "ens33",
|
||||||
@ -68,25 +63,12 @@ Examples:
|
|||||||
"window": "0",
|
"window": "0",
|
||||||
"irtt": "0"
|
"irtt": "0"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"destination": "172.17.0.0",
|
|
||||||
"gateway": "0.0.0.0",
|
|
||||||
"genmask": "255.255.0.0",
|
|
||||||
"flags": "U",
|
|
||||||
"metric": "0",
|
|
||||||
"ref": "0",
|
|
||||||
"use": "0",
|
|
||||||
"iface": "docker",
|
|
||||||
"mss": "0",
|
|
||||||
"window": "0",
|
|
||||||
"irtt": "0"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"destination": "192.168.71.0",
|
"destination": "192.168.71.0",
|
||||||
"gateway": "0.0.0.0",
|
"gateway": "0.0.0.0",
|
||||||
"genmask": "255.255.255.0",
|
"genmask": "255.255.255.0",
|
||||||
"flags": "U",
|
"flags": "U",
|
||||||
"metric": "100",
|
"metric": "202",
|
||||||
"ref": "0",
|
"ref": "0",
|
||||||
"use": "0",
|
"use": "0",
|
||||||
"iface": "ens33",
|
"iface": "ens33",
|
||||||
@ -95,6 +77,7 @@ Examples:
|
|||||||
"irtt": "0"
|
"irtt": "0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
"""
|
"""
|
||||||
import jc.utils
|
import jc.utils
|
||||||
import jc.parsers.universal
|
import jc.parsers.universal
|
||||||
|
Reference in New Issue
Block a user