examples/

directory
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2026 License: MIT

README

Examples — screenshot recipes

All of these run against examples/hosts.sample.txt (12 fake branch DCs) over the local transport with harmless echo/sleep commands — nothing leaves your machine. Build first:

go build -o bin/fleet ./cmd/fleet   # -o fleet would collide with the fleet/ pkg dir
1. The run builder (TUI form)
./bin/fleet tui

Tab through fields, flip the Task selector (←/→) to watch the fields change per verb, toggle What-if, then ctrl+g to launch.

2. The live dashboard — busy, with spinners + a failure + waves

A staggered command (random sleep) keeps spinners moving; BR05 is rigged to fail:

./bin/fleet run -L examples/hosts.sample.txt -P 4 \
  -c 'sleep $((RANDOM % 3)); test "{{.Name}}" != "BR05-DC01"' --tui

Add a staged rollout to capture the canary/wave marker in the header:

./bin/fleet run -L examples/hosts.sample.txt -P 3 --canary 1 --wave 3 --health-cmd 'true' \
  -c 'sleep $((RANDOM % 2)); echo ok {{.Name}}' --tui
3. The gather results table (filterable)
./bin/fleet gather -L examples/hosts.sample.txt \
  -c 'echo "$(hostname) load=$(uptime | sed "s/.*load//")"' --tui

Type to filter; ↑/↓ scroll; esc quits.

Tip for crisp screenshots: a ~120×32 terminal, a dark theme, and a font with good box-drawing glyphs (the borders + spinners render best there).

Directories

Path Synopsis
Command splash shows the winadmin dialog package's ass-ugly retro splash screen — the terminal descendant of the splash screens overnight installers loved.
Command splash shows the winadmin dialog package's ass-ugly retro splash screen — the terminal descendant of the splash screens overnight installers loved.
Command statusboard renders the fleet status dashboard with a representative heterogeneous fleet, so you can see the `fleet status --tui` view without a live fleet.
Command statusboard renders the fleet status dashboard with a representative heterogeneous fleet, so you can see the `fleet status --tui` view without a live fleet.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL