1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-23 00:29:59 +02:00

update docs

This commit is contained in:
Kelly Brazil
2020-05-30 20:33:00 -07:00
parent bed694fcf5
commit aa31628970
5 changed files with 70 additions and 63 deletions

View File

@ -1699,7 +1699,11 @@ $ netstat -r | jc --netstat -p # or: jc -p netstat -r
"window": 0, "window": 0,
"irtt": 0, "irtt": 0,
"iface": "ens33", "iface": "ens33",
"kind": "route" "kind": "route",
"route_flags_pretty": [
"UP",
"GATEWAY"
]
}, },
{ {
"destination": "172.17.0.0", "destination": "172.17.0.0",
@ -1710,7 +1714,10 @@ $ netstat -r | jc --netstat -p # or: jc -p netstat -r
"window": 0, "window": 0,
"irtt": 0, "irtt": 0,
"iface": "docker0", "iface": "docker0",
"kind": "route" "kind": "route",
"route_flags_pretty": [
"UP"
]
}, },
{ {
"destination": "192.168.71.0", "destination": "192.168.71.0",
@ -1721,7 +1728,10 @@ $ netstat -r | jc --netstat -p # or: jc -p netstat -r
"window": 0, "window": 0,
"irtt": 0, "irtt": 0,
"iface": "ens33", "iface": "ens33",
"kind": "route" "kind": "route",
"route_flags_pretty": [
"UP"
]
} }
] ]
@ -1961,42 +1971,36 @@ $ route -ee | jc --route -p # or: jc -p route -ee
[ [
{ {
"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"
]
} }
] ]
``` ```

View File

@ -177,7 +177,11 @@ Examples:
"window": 0, "window": 0,
"irtt": 0, "irtt": 0,
"iface": "ens33", "iface": "ens33",
"kind": "route" "kind": "route",
"route_flags_pretty": [
"UP",
"GATEWAY"
]
}, },
{ {
"destination": "172.17.0.0", "destination": "172.17.0.0",
@ -188,7 +192,10 @@ Examples:
"window": 0, "window": 0,
"irtt": 0, "irtt": 0,
"iface": "docker0", "iface": "docker0",
"kind": "route" "kind": "route",
"route_flags_pretty": [
"UP"
]
}, },
{ {
"destination": "192.168.71.0", "destination": "192.168.71.0",
@ -199,7 +206,10 @@ Examples:
"window": 0, "window": 0,
"irtt": 0, "irtt": 0,
"iface": "ens33", "iface": "ens33",
"kind": "route" "kind": "route",
"route_flags_pretty": [
"UP"
]
} }
] ]

View File

@ -15,53 +15,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",
@ -69,25 +64,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",
@ -97,6 +79,7 @@ Examples:
} }
] ]
## info ## info
```python ```python
info(self, /, *args, **kwargs) info(self, /, *args, **kwargs)

View File

@ -142,10 +142,10 @@ Returns:
"modify_time": string, # - = null "modify_time": string, # - = null
"change_time": string, # - = null "change_time": string, # - = null
"birth_time": string, # - = null "birth_time": string, # - = null
"osx_device": integer, "unix_device": integer,
"rdev": integer, "rdev": integer,
"block_size": integer, "block_size": integer,
"osx_flags": string "unix_flags": string
} }
] ]

View File

@ -176,7 +176,11 @@ Examples:
"window": 0, "window": 0,
"irtt": 0, "irtt": 0,
"iface": "ens33", "iface": "ens33",
"kind": "route" "kind": "route",
"route_flags_pretty": [
"UP",
"GATEWAY"
]
}, },
{ {
"destination": "172.17.0.0", "destination": "172.17.0.0",
@ -187,7 +191,10 @@ Examples:
"window": 0, "window": 0,
"irtt": 0, "irtt": 0,
"iface": "docker0", "iface": "docker0",
"kind": "route" "kind": "route",
"route_flags_pretty": [
"UP"
]
}, },
{ {
"destination": "192.168.71.0", "destination": "192.168.71.0",
@ -198,7 +205,10 @@ Examples:
"window": 0, "window": 0,
"irtt": 0, "irtt": 0,
"iface": "ens33", "iface": "ens33",
"kind": "route" "kind": "route",
"route_flags_pretty": [
"UP"
]
} }
] ]