Documentation
¶
Index ¶
Constants ¶
const BODY_GUTTER_WIDTH = 2
BODY_GUTTER_WIDTH is the blank tier-2 column rendered between the two body panels so they don't touch. It is subtracted from the row before the panels are sized, so the gutter never pushes the layout past the terminal width.
const LEFT_PANEL_WIDTH float32 = 0.33
LEFT_PANEL_WIDTH is set to lazydocker's default sidebar width (one-third of the terminal) so the service/group list is readable without overwhelming the details panel.
const MIN_PANEL_WIDTH = 30
const RIGHT_PANEL_WIDTH float32 = 1 - LEFT_PANEL_WIDTH
RIGHT_PANEL_WIDTH is kept for reference only. The right panel is sized as the remainder of the body row (see AppModel.calculateBodyLayout) rather than as an independent fraction of the terminal, so that left + gutter + right == terminal width exactly.
Variables ¶
var APP_NAME = "Cais"
var SLOGAN = "Nothing to sew here."
var WORDMARK = "▌ Cais"
WORDMARK is the one-line badge rendered in the main menu bar.
Functions ¶
func Version ¶
func Version() string
Version reports the running build's version.
A stamped value wins - that is a release, and it says so. Otherwise the build info answers, and which half of it answers sorts the two remaining cases cleanly:
- Built from a checkout: there is a vcs.revision, so the short commit is the version. The toolchain also synthesizes a v0.0.0-<date>-<hash> pseudo-version here, which says the same thing at three times the length and reads like a release that never existed.
- Installed with `go install ...@v0.1.0`: a module download has no VCS info at all, so Main.Version is the only answer, and it is the right one.
Types ¶
This section is empty.