tui

package
v0.0.0-...-90cd65b Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppState

type AppState int
const (
	AppStateProjects AppState = iota
	AppStateTasks

	AppStateLen
)

type Config

type Config struct {
	ConfigDir string
}

type MainModel

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

func NewMainModel

func NewMainModel(cfg Config) *MainModel

func (*MainModel) Init

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

func (*MainModel) Update

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

func (*MainModel) View

func (m *MainModel) View() string

type ProjectItem

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

func (ProjectItem) Description

func (i ProjectItem) Description() string

func (ProjectItem) FilterValue

func (i ProjectItem) FilterValue() string

func (ProjectItem) Title

func (i ProjectItem) Title() string

type ProjectRemove

type ProjectRemove int

type ProjectsMode

type ProjectsMode int
const (
	ProjectsModeNormal ProjectsMode = iota
	ProjectsModeNew
	ProjectsModeRename
	ProjectsModeDelete
)

type ProjectsModel

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

func NewProjectsModel

func NewProjectsModel(cfg Config) *ProjectsModel

func (*ProjectsModel) Init

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

func (*ProjectsModel) Update

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

func (*ProjectsModel) View

func (m *ProjectsModel) View() string

Jump to

Keyboard shortcuts

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