From ea22afd3e7336492433412d1ac771f4a1145b05f Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 13 Feb 2026 22:59:39 +0200 Subject: Go rewrite: loadbars with mage, default localhost, NOTICE - Module codeberg.org/snonux/loadbars, Go 1.25 - cmd/loadbars, internal/{app,config,collector,display,stats,constants,version} - SDL display, shell script for remote (no Perl), config/cluster support - Magefile: build, test, install, uninstall/deinstall - NOTICE for go-sdl2 attribution (BSD-3-Clause) - Default to localhost when no hosts given (no SSH) - Remove loadbars-go binary name; build as loadbars Co-authored-by: Cursor --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index c1cc2d5..c0f90dd 100644 --- a/README.md +++ b/README.md @@ -38,17 +38,18 @@ loadbars servername{01..50}.example.com --showcores 1 Loadbars is a small script that can be used to observe CPU loads of several remote servers at once in real time. It connects with SSH (using SSH public/private key auth) to several servers at once and vizualizes all server CPUs and memory statistics right next each other (either summarized or each core separately). Loadbars is not a tool for collecting CPU loads and drawing graphs for later analysis. However, since such tools require a significant amount of time before producing results, Loadbars lets you observe the current state immediately. Loadbars does not remember or record any load information. It just shows the current CPU usages like top or vmstat does. -## Go version (loadbars-go) +## Build and run -A Go rewrite is available in this repo. Build and run: +Build the binary: ```bash -go build -o loadbars-go ./cmd/loadbars -./loadbars-go --hosts localhost -# or: just go-build && ./loadbars-go --hosts localhost +go build -o loadbars ./cmd/loadbars +./loadbars --hosts localhost ``` -Remote hosts need no Perl: the Go binary pipes `scripts/loadbars-remote.sh` over SSH. Install: `just go-install DESTDIR=/tmp/loadbars`. +Or use [mage](https://magefile.org): `mage build` (default), `mage test`, `mage install` (set `DESTDIR` for install path), `mage uninstall` / `mage deinstall`. + +Remote hosts need no Perl: the binary pipes `scripts/loadbars-remote.sh` over SSH. ## Installation @@ -133,6 +134,8 @@ will always show all CPU cores. If you press the 'w' hotkey during program execu See package description or project website. +The Go build of loadbars links to **go-sdl2** (github.com/veandco/go-sdl2), which is licensed under the **BSD-3-Clause** license. That license is compatible with loadbars' use and does not impose additional restrictions on distribution. The full copyright notice and license text for go-sdl2 are in the [NOTICE](NOTICE) file. + ## Author Paul Buetow - -- cgit v1.2.3