added cli usage info, removed useless type alias

This commit is contained in:
Matt Melquiond 2019-09-09 20:46:34 +02:00
parent b80258b07e
commit fcdb71bfad
3 changed files with 8 additions and 2 deletions

View File

@ -115,6 +115,10 @@ To make a custom colorscheme, check out the [template](./colorschemes/template.g
`-b`, `--battery` Show battery level widget (`minimal` turns off). [preview](./assets/screenshots/battery.png)
`-i`, `--interface=NAME` Select network interface [default: all].
Several interfaces can be defined using comma separated values.
Interfaces can also be ignored using `!`
## Built With
- [gizak/termui](https://github.com/gizak/termui)

View File

@ -78,6 +78,10 @@ Options:
-b, --battery Show battery level widget ('minimal' turns off).
-i, --interface=NAME Select network interface [default: all].
Several interfaces can be defined using comma separated values.
Interfaces can also be ignored using !
Colorschemes:
default
default-dark (for white background)

View File

@ -17,8 +17,6 @@ const (
NET_INTERFACE_VPN = "tun0"
)
type NetInterface string
type NetWidget struct {
*ui.SparklineGroup
updateInterval time.Duration