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
}