class

Swarmy::ServerPicker

Inherits Reference < Object

Constructors

new(screen : Tui::Screen = Tui::Screen.new, servers : Array(Server) = Server.load_all, active : Server | Nil = nil)
Source

Instance methods

cursor

Cursor position at startup: 0 ("Local") or the index of the active server + 1.

Source
run

Returns the selected Server, or nil for "Local" / cancel.

Source