Documentation
¶
Overview ¶
Package perm is the permission dialog (doc 02 section 9). It renders the core's PermissionRequested event: the consequence preview is shown exactly as the core rendered it, by kind, and never re-derived from tool input (D2, D15). Deny has the default focus, so the lowest energy answer is the safe one.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decision ¶
Decision is the action this dialog returns through the overlay. The root maps it onto the core's permission reply; the dialog itself never touches the bus.
type Dialog ¶
type Dialog struct {
// contains filtered or unexported fields
}
Dialog renders one permission request. It implements ui/dialog.Dialog.
func New ¶
func New(req event.PermissionRequested, th theme.Theme) *Dialog
New builds the dialog for a request. Focus starts on deny.
Click to show internal directories.
Click to hide internal directories.