Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
Update readme and cli arg help menu
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Jan 4, 2019
1 parent 37e1d9d commit d8434b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Another terminal based graphical activity monitor, inspired by [gtop](https://gi

<img src="./assets/demo.gif" />
<img src="./assets/minimal.png" width="96%" />
<img src="./assets/battery.png"/>

</div>

Expand Down Expand Up @@ -93,11 +92,11 @@ To make a custom colorscheme, check out the [template](./colorschemes/template.g
`-c`, `--color=NAME` Set a colorscheme.
`-m`, `--minimal` Only show CPU, Mem and Process widgets.
`-r`, `--rate=RATE` Number of times per second to update CPU and Mem widgets [default: 1].
`-v`, `--version` Show version.
`-v`, `--version` Print version and exit.
`-p`, `--percpu` Show each CPU in the CPU widget.
`-a`, `--averagecpu` Show average CPU in the CPU widget.
`-b`, `--bar` Show a statusbar with the time.
`-t`, `--battery` Show battery level (defaults to false, `minimal` turns off)
`-a`, `--averagecpu` Show average CPU in the CPU widget.
`-s`, `--statusbar` Show a statusbar with the time.
`-b`, `--battery` Show battery level widget (`minimal` turns off). [widget preview](./assets/battery.png)

## Building deb/rpms

Expand All @@ -121,7 +120,7 @@ This will place the built packages into the `dist` folder.
- [exrook/drawille-go](https://github.com/exrook/drawille-go)
- [shirou/gopsutil](https://github.com/shirou/gopsutil)
- [goreleaser/goreleaser](https://github.com/goreleaser/goreleaser)
- [battery](https://github.com/distatus/battery)
- [distatus/battery](https://github.com/distatus/battery)

## Stargazers over time

Expand Down
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ Options:
-h, --help Show this screen.
-m, --minimal Only show CPU, Mem and Process widgets.
-r, --rate=RATE Number of times per second to update CPU and Mem widgets [default: 1].
-v, --version Show version.
-v, --version Print version and exit.
-p, --percpu Show each CPU in the CPU widget.
-a, --averagecpu Show average CPU in the CPU widget.
-f, --fahrenheit Show temperatures in fahrenheit.
-t, --battery Show battery charge over time ('minimal' disables; widget updates slowly)
-b, --bar Show a statusbar with the time.
-s, --statusbar Show a statusbar with the time.
-b, --battery Show battery level widget ('minimal' turns off).
Colorschemes:
default
Expand All @@ -92,7 +92,7 @@ Colorschemes:

minimal, _ = args["--minimal"].(bool)

statusbar, _ = args["--bar"].(bool)
statusbar, _ = args["--statusbar"].(bool)

rateStr, _ := args["--rate"].(string)
rate, err := strconv.ParseFloat(rateStr, 64)
Expand Down

0 comments on commit d8434b8

Please sign in to comment.