tui

package
v0.0.0-...-7944070 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ApplicationName = "BeatZipper"

ApplicationName contains the application name.

Variables

View Source
var ApplicationVersion = "set-during-build"

ApplicationVersion has the version number, and is set during the build.

View Source
var (
	// ErrNoFiles is returned when no files were given to extract.
	ErrNoFiles = errors.New("no files given to extract")
)

Functions

func Main

func Main(options ProgramOptions)

Main runs the TUI application.

func NewModel

func NewModel(options ProgramOptions) tea.Model

NewModel returns a new TUI model.

Types

type ProgramOptions

type ProgramOptions struct {
	// The files to extract.
	Files []string

	ExtractionLocation string
}

ProgramOptions can be passed from the CLI to influence how the program behaves.

Jump to

Keyboard shortcuts

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