Help us shape the future of Go! Take the 2026 Go Developer Survey

app

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

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

func NewApplication

func NewApplication(
	logger logger.Logger,
	screenWriter terminal.Terminal,
	user *domain.User,
	client Client.Client,
	cache Cache.Cache,
) Application

func (Application) CurrentState

func (app Application) CurrentState() string

func (*Application) HandleKeyinput

func (app *Application) HandleKeyinput(character rune, key keyboard.Key) bool

HandleKeyInput processes the key/rune typed on a keyboard. Returns whether the application should continue to run. e.g. ifs ctrl+C, returns false

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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