generalview

package
v0.0.0-...-6a88689 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	Width  int
	Height int
}

func (Body) Init

func (b Body) Init() tea.Cmd

func (Body) Update

func (b Body) Update(msg tea.Msg) (Body, tea.Cmd)

func (Body) View

func (b Body) View() string

type ConfirmDeleteWorkspaceMsg

type ConfirmDeleteWorkspaceMsg struct {
	WorkspaceID string
}

type ConfirmationView

type ConfirmationView struct {
	Width  int
	Height int
	// contains filtered or unexported fields
}

func NewConfirmationView

func NewConfirmationView(message string, onYes, onNo tea.Msg) ConfirmationView

func (ConfirmationView) Init

func (v ConfirmationView) Init() tea.Cmd

func (ConfirmationView) Update

func (v ConfirmationView) Update(msg tea.Msg) (ConfirmationView, tea.Cmd)

func (ConfirmationView) View

func (v ConfirmationView) View() string

type CreateProjectView

type CreateProjectView struct {
	Width  int
	Height int
	// contains filtered or unexported fields
}

func NewCreateProjectView

func NewCreateProjectView(db *sql.DB, workspaceID string) CreateProjectView

func (CreateProjectView) Init

func (v CreateProjectView) Init() tea.Cmd

func (CreateProjectView) Update

func (v CreateProjectView) Update(msg tea.Msg) (CreateProjectView, tea.Cmd)

func (CreateProjectView) View

func (v CreateProjectView) View() string

type CreateWorkspaceView

type CreateWorkspaceView struct {
	Width  int
	Height int
	// contains filtered or unexported fields
}

func NewCreateWorkspaceView

func NewCreateWorkspaceView(db *sql.DB) CreateWorkspaceView

func (CreateWorkspaceView) Init

func (v CreateWorkspaceView) Init() tea.Cmd

func (CreateWorkspaceView) Update

func (CreateWorkspaceView) View

func (v CreateWorkspaceView) View() string

type DeleteProjectCommandMsg

type DeleteProjectCommandMsg struct{}

type DeleteWorkspaceCommandMsg

type DeleteWorkspaceCommandMsg struct{}

type DeleteWorkspaceView

type DeleteWorkspaceView struct {
	Width  int
	Height int
	// contains filtered or unexported fields
}

func NewDeleteWorkspaceView

func NewDeleteWorkspaceView(db *sql.DB) DeleteWorkspaceView

func (DeleteWorkspaceView) Init

func (v DeleteWorkspaceView) Init() tea.Cmd

func (DeleteWorkspaceView) Update

func (DeleteWorkspaceView) View

func (v DeleteWorkspaceView) View() string

type DoneCreateProjectMsg

type DoneCreateProjectMsg struct{}

A message to signal that the project creation is done/cancelled.

type DoneCreateWorkspaceMsg

type DoneCreateWorkspaceMsg struct{}

A message to signal that the workspace creation is done/cancelled.

type DoneDeleteWorkspaceMsg

type DoneDeleteWorkspaceMsg struct{}

type DoneHelpMsg

type DoneHelpMsg struct{}

type DoneModuleSelectorMsg

type DoneModuleSelectorMsg struct {
	Project storage.Project
}

type DoneSwapWorkspaceMsg

type DoneSwapWorkspaceMsg struct {
	SelectedWorkspace storage.Workspace
}

type DoneWorkspaceModuleSelectorMsg

type DoneWorkspaceModuleSelectorMsg struct {
	Workspace storage.Workspace
}

type HelpCommandMsg

type HelpCommandMsg struct{}

type HelpView

type HelpView struct {
	// contains filtered or unexported fields
}

func NewHelpView

func NewHelpView() HelpView

func (HelpView) Init

func (v HelpView) Init() tea.Cmd

func (HelpView) Update

func (v HelpView) Update(msg tea.Msg) (HelpView, tea.Cmd)

func (HelpView) View

func (v HelpView) View() string

type ModuleSelectorCommandMsg

type ModuleSelectorCommandMsg struct{}

type ModuleSelectorView

type ModuleSelectorView struct {
	// contains filtered or unexported fields
}

func NewModuleSelectorView

func NewModuleSelectorView(project storage.Project) ModuleSelectorView

func (ModuleSelectorView) Init

func (v ModuleSelectorView) Init() tea.Cmd

func (ModuleSelectorView) Update

func (ModuleSelectorView) View

func (v ModuleSelectorView) View() string

type NewProjectCommandMsg

type NewProjectCommandMsg struct{}

type NewWorkspaceCommandMsg

type NewWorkspaceCommandMsg struct{}

New message type for newWorkspace command

type ProjectBar

type ProjectBar struct {
	Projects      []storage.Project
	SelectedIndex int
	// contains filtered or unexported fields
}

func NewProjectBar

func NewProjectBar() ProjectBar

func (*ProjectBar) Init

func (m *ProjectBar) Init() tea.Cmd

func (*ProjectBar) Update

func (m *ProjectBar) Update(msg tea.Msg) (*ProjectBar, tea.Cmd)

func (*ProjectBar) View

func (m *ProjectBar) View() string

type StatusBar

type StatusBar struct {
	Width           int
	CommandMode     bool
	Command         string
	ActiveWorkspace string
	ActiveProject   string
}

func (StatusBar) Init

func (s StatusBar) Init() tea.Cmd

func (StatusBar) Update

func (s StatusBar) Update(msg tea.Msg) (StatusBar, tea.Cmd)

func (StatusBar) View

func (s StatusBar) View() string

type SwapProjectCommandMsg

type SwapProjectCommandMsg struct{}

type SwapWorkspaceCommandMsg

type SwapWorkspaceCommandMsg struct{}

type SwapWorkspaceView

type SwapWorkspaceView struct {
	// contains filtered or unexported fields
}

func NewSwapWorkspaceView

func NewSwapWorkspaceView(db *sql.DB) SwapWorkspaceView

func (SwapWorkspaceView) Init

func (v SwapWorkspaceView) Init() tea.Cmd

func (SwapWorkspaceView) Update

func (v SwapWorkspaceView) Update(msg tea.Msg) (SwapWorkspaceView, tea.Cmd)

func (SwapWorkspaceView) View

func (v SwapWorkspaceView) View() string

type SwitchProjectMsg

type SwitchProjectMsg struct {
	Project storage.Project
}

type TwitterLoginCommandMsg

type TwitterLoginCommandMsg struct{}

type TwitterPostCommandMsg

type TwitterPostCommandMsg struct{}

type WorkspaceModuleSelectorCommandMsg

type WorkspaceModuleSelectorCommandMsg struct{}

type WorkspaceModuleSelectorView

type WorkspaceModuleSelectorView struct {
	// contains filtered or unexported fields
}

func NewWorkspaceModuleSelectorView

func NewWorkspaceModuleSelectorView(workspace storage.Workspace) WorkspaceModuleSelectorView

func (WorkspaceModuleSelectorView) Init

func (WorkspaceModuleSelectorView) Update

func (WorkspaceModuleSelectorView) View

Jump to

Keyboard shortcuts

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