ui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorFetchingVersion = "error"
	SystemNotFound       = "not found"
)

Variables

This section is empty.

Functions

func RenderUI

func RenderUI(config Config)

func RightPadTrim

func RightPadTrim(s string, length int) string

func Trim

func Trim(s string, length int) string

Types

type Config

type Config struct {
	GHClient     *ghapi.GraphQLClient
	Workflows    []gh.Workflow
	CurrentRepo  *string
	Fmt          OutputFmt
	HTMLTemplate string
}

type Model

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

func InitialModel

func InitialModel(config Config) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

type OutputFmt

type OutputFmt uint
const (
	UnspecifiedFmt OutputFmt = iota
	HTMLFmt
)

type WorkflowRunsFetchedMsg

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

Jump to

Keyboard shortcuts

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