Documentation
¶
Index ¶
- type CloseCommandDialogMsg
- type CloseInitDialogMsg
- type CloseQuitMsg
- type CloseSessionDialogMsg
- type Command
- type CommandDialog
- type CommandSelectedMsg
- type HelpCmp
- type InitDialogCmp
- type PermissionAction
- type PermissionDialogCmp
- type PermissionResponseMsg
- type QuitDialog
- type SessionDialog
- type SessionSelectedMsg
- type ShowInitDialogMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseCommandDialogMsg ¶
type CloseCommandDialogMsg struct{}
CloseCommandDialogMsg is sent when the command dialog is closed
type CloseInitDialogMsg ¶
type CloseInitDialogMsg struct {
Initialize bool
}
CloseInitDialogMsg is a message that is sent when the init dialog is closed.
type CloseQuitMsg ¶
type CloseQuitMsg struct{}
type CloseSessionDialogMsg ¶
type CloseSessionDialogMsg struct{}
CloseSessionDialogMsg is sent when the session dialog is closed
type CommandDialog ¶
type CommandDialog interface { tea.Model layout.Bindings SetCommands(commands []Command) SetSelectedCommand(commandID string) }
CommandDialog interface for the command selection dialog
func NewCommandDialogCmp ¶
func NewCommandDialogCmp() CommandDialog
NewCommandDialogCmp creates a new command selection dialog
type CommandSelectedMsg ¶
type CommandSelectedMsg struct {
Command Command
}
CommandSelectedMsg is sent when a command is selected
type HelpCmp ¶
func NewHelpCmp ¶
func NewHelpCmp() HelpCmp
type InitDialogCmp ¶
type InitDialogCmp struct {
// contains filtered or unexported fields
}
InitDialogCmp is a component that asks the user if they want to initialize the project.
func NewInitDialogCmp ¶
func NewInitDialogCmp() InitDialogCmp
NewInitDialogCmp creates a new InitDialogCmp.
func (InitDialogCmp) Bindings ¶
func (m InitDialogCmp) Bindings() []key.Binding
Bindings implements layout.Bindings.
func (*InitDialogCmp) SetSize ¶
func (m *InitDialogCmp) SetSize(width, height int)
SetSize sets the size of the component.
type PermissionAction ¶
type PermissionAction string
const ( PermissionAllow PermissionAction = "allow" PermissionAllowForSession PermissionAction = "allow_session" PermissionDeny PermissionAction = "deny" )
Permission responses
type PermissionDialogCmp ¶
type PermissionDialogCmp interface { tea.Model layout.Bindings SetPermissions(permission permission.PermissionRequest) tea.Cmd }
PermissionDialogCmp interface for permission dialog component
func NewPermissionDialogCmp ¶
func NewPermissionDialogCmp() PermissionDialogCmp
type PermissionResponseMsg ¶
type PermissionResponseMsg struct { Permission permission.PermissionRequest Action PermissionAction }
PermissionResponseMsg represents the user's response to a permission request
type QuitDialog ¶
func NewQuitCmp ¶
func NewQuitCmp() QuitDialog
type SessionDialog ¶
type SessionDialog interface { tea.Model layout.Bindings SetSessions(sessions []session.Session) SetSelectedSession(sessionID string) }
SessionDialog interface for the session switching dialog
func NewSessionDialogCmp ¶
func NewSessionDialogCmp() SessionDialog
NewSessionDialogCmp creates a new session switching dialog
type SessionSelectedMsg ¶
SessionSelectedMsg is sent when a session is selected
type ShowInitDialogMsg ¶
type ShowInitDialogMsg struct {
Show bool
}
ShowInitDialogMsg is a message that is sent to show the init dialog.