Documentation
¶
Overview ¶
Package portal is the bare `drift` dashboard — a full-screen, k9s-style TUI over the same /ops/* surface the other commands wrap: a navbar, a slices sidebar (TAB to focus), and a brand-coloured Slice/Atomic/Backbone/Canvas main pane for browsing functions, data, and sites without leaving the terminal. (Still reachable as the hidden `drift portal` alias.)
Deliberately framework-free (no bubbletea): alt-screen + raw mode via golang.org/x/term + ANSI, matching the lean toolkit the rest of the CLI uses. One model, one render() (layout.go), one key loop. Every fetch is auto-scoped to the active slice (X-Slice header), so the panes follow the sidebar.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run launches the full-screen dashboard. It's the bare `drift` entrypoint (and the hidden `drift portal` alias). version is the running CLI version, used for the "update available" banner. createName is non-nil when the dashboard should open straight into create-slice mode instead of the normal sidebar/tabs view — *createName pre-fills the form's name field (possibly empty, letting the user type it in the form). This is how `drift slice create <name>`'s default path lands the user directly in the configurator-equivalent view, now that the old browser-based configurator service is retired.
Types ¶
This section is empty.