Workflow and documentation improvements.

This commit is contained in:
Sean E. Russell 2020-03-02 13:41:55 -06:00
parent ce00a54104
commit 8642e94d90
3 changed files with 7 additions and 5 deletions

View File

@ -19,7 +19,7 @@ jobs:
with: with:
token: ${{ secrets.REPO_ACCESS_TOKEN }} token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: xxxserxxx/homebrew-gotop repository: xxxserxxx/homebrew-gotop
event-type: my-event event-type: my-release
client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}' client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}'
- name: Update Arch AURs - name: Update Arch AURs
@ -27,5 +27,5 @@ jobs:
with: with:
token: ${{ secrets.REPO_ACCESS_TOKEN }} token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: xxxserxxx/gotop-linux repository: xxxserxxx/gotop-linux
event-type: my-event event-type: my-release
client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}' client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}'

View File

@ -31,17 +31,18 @@ yay -S gotop-bin
### OSX ### OSX
gotop can be installed with [Homebrew](https://brew.sh/); you'll need to tap the recipe. If you'd previously tapped cjbassi's recipe, you'll want to untap that first. gotop can be installed with [Homebrew](https://brew.sh/); you'll need to tap the recipe. If you'd previously tapped cjbassi's recipe, you'll want to untap that first. The old version of gotop is also included in Homebrew's core library, and that will always be chosen before any taps, so you have to specify the tap specifically.
``` ```
brew uninstall gotop # If previously installed
brew untap cjbassi/gotop # If previously tapped brew untap cjbassi/gotop # If previously tapped
brew tap xxxserxxx/gotop brew tap xxxserxxx/gotop
brew install gotop brew install xxxserxxx/gotop
``` ```
### Prebuilt binaries ### Prebuilt binaries
This doesn't require Go, is easy, and works across distributions. You have to manually upgrade the executable yourself, though. This doesn't require Go, is easy, and works across distributions. You have to manually upgrade the executable yourself, though, so using your distribution's package (if one is available) is a better approach.
Visit [the releases page](https://github.com/xxxserxxx/gotop/releases) with your web browser and download the appropriate file for your OS. Unzip it (the archive contains a single file) and then move the resulting `gotop` binary into your `$PATH` somewhere. If you're on a Debian or Redhat derivative, you can download an `.rpm` or `.deb` and install that. Visit [the releases page](https://github.com/xxxserxxx/gotop/releases) with your web browser and download the appropriate file for your OS. Unzip it (the archive contains a single file) and then move the resulting `gotop` binary into your `$PATH` somewhere. If you're on a Debian or Redhat derivative, you can download an `.rpm` or `.deb` and install that.

View File

@ -51,6 +51,7 @@ var (
// TODO: state:deferred 157 FreeBSD fixes & Nvidia GPU support (kraust/master). Significant CPU use impact for NVidia changes. // TODO: state:deferred 157 FreeBSD fixes & Nvidia GPU support (kraust/master). Significant CPU use impact for NVidia changes.
// TODO: Virtual devices from Prometeus metrics @feature // TODO: Virtual devices from Prometeus metrics @feature
// TODO: state:merge #167 configuration file (jrswab/configFile111) // TODO: state:merge #167 configuration file (jrswab/configFile111)
// TODO: Abstract out the UI toolkit. mum4k/termdash, VladimirMarkelov/clui, gcla/gowid, rivo/tview, marcusolsson/tui-go might work better for some OS/Archs. Performance/memory use comparison would be interesting.
func parseArgs(conf *gotop.Config) error { func parseArgs(conf *gotop.Config) error {
usage := ` usage := `
Usage: gotop [options] Usage: gotop [options]