ui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package ui provides a minimal arrow-key navigable profile picker.

Index

Constants

This section is empty.

Variables

View Source
var ErrCancelled = errors.New("selection cancelled")

ErrCancelled is returned when the user presses Esc or Ctrl+C.

Functions

func Pick

func Pick(profiles []profile.Profile, active string) (string, error)

Pick opens the interactive picker. active is the currently active profile name (or "" if none). Returns the chosen profile name, or ErrCancelled if the user pressed Esc/q/Ctrl+C.

Types

This section is empty.

Jump to

Keyboard shortcuts

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