ui

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CUI

type CUI struct {
	App  ctk.Application
	Args []string

	Display        cdk.Display
	Window         ctk.Window
	MainLabel      ctk.Label
	DiffView       ctk.ScrolledViewport
	DiffLabel      ctk.Label
	WorkAccel      ctk.AccelGroup
	EditButton     ctk.Button
	KeepEditButton ctk.Button
	SkipEditButton ctk.Button
	SkipButton     ctk.Button
	ApplyButton    ctk.Button
	QuitButton     ctk.Button

	ActionArea ctk.HButtonBox

	StateSpinner ctk.Spinner
	StatusLabel  ctk.Label

	LastError error

	sync.RWMutex
	// contains filtered or unexported fields
}

func NewUI

func NewUI(name, usage, description, version, release, tag, title, ttyPath string, notifier *notify.Notifier) (u *CUI)

func (*CUI) Run

func (u *CUI) Run(argv []string) (err error)

type ViewType

type ViewType uint8
const (
	NopeView ViewType = iota
	FileView
	EditView
)

Jump to

Keyboard shortcuts

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