portal

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 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, createName *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. 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.

Jump to

Keyboard shortcuts

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