ui

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiClient *api.Client

Functions

func SaveConfig

func SaveConfig(cfg Config) error

Types

type AuthSuccessMsg

type AuthSuccessMsg struct {
	Token string
}

type CdResultMsg

type CdResultMsg struct {
	Path string
	Type string
	ID   string
}

type Config

type Config struct {
	Token string `json:"token"`
}

func LoadConfig

func LoadConfig() Config

type Model

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

func InitialModel

func InitialModel() Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

Update the Model's Update method to handle these messages

func (Model) View

func (m Model) View() string

type OutputMsg

type OutputMsg struct {
	Lines []string
}

type TabCompletionMsg

type TabCompletionMsg struct {
	Input string
}

type TaskDetailsMsg

type TaskDetailsMsg struct {
	Details string
	Err     error
}

type TasksMsg

type TasksMsg struct {
	Tasks []string
	Err   error
}

type UpdateLastOnlineMsg

type UpdateLastOnlineMsg struct {
	Err error
}

type WorkspacesMsg

type WorkspacesMsg struct {
	Names []string
	Err   error
}

Jump to

Keyboard shortcuts

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