portal

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 19 Imported by: 0

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 GetCmd

func GetCmd(version string) *cobra.Command

GetCmd returns the `drift portal` command.

func Run

func Run(version string) error

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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