commandmenu

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entries

func Entries(state State) []surfacedialog.PickerEntry

func PickerCloseAction

func PickerCloseAction(picker controlplane.PickerData) surfacedialog.Action

PickerCloseAction is what dismissing the picker does: go back, run its close command, or just close.

func PickerEntries

func PickerEntries(picker controlplane.PickerData) []surfacedialog.PickerEntry

PickerEntries are a picker's rows, with a line above actions and danger rows, and its Back button when it has one.

func PickerLegend

func PickerLegend(kind controlplane.PickerKind) string

PickerLegend names the keys of a picker opened as a menu.

Types

type State

type State struct {
	SessionTitle            string
	ProviderID              string
	ModelID                 string
	PermissionMode          core.PermissionMode
	Capabilities            core.SessionCapabilities
	ExternalEditorAvailable bool
}

Jump to

Keyboard shortcuts

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