ui

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package ui implements terminal interactions for DataPower Commander. This package contains most of business logic of application and is used to read user input actions and model application responses to those actions.

Index

Constants

View Source
const QuitError = errs.Error("QuitError")

QuitError is constant used to recognize when user wants to quit dpcmder.

Variables

This section is empty.

Functions

func InitialLoad

func InitialLoad()

InitialLoad initializes DataPower and local filesystem access and load initial views.

func ProcessInputEvent

func ProcessInputEvent(event tcell.Event) error

ProcessInputEvent processes given input event and do appropriate action. This is function with main logic of dpcmder.

func Start

func Start()

Start starts dpcmder UI.

func StartReadingKeys

func StartReadingKeys()

StartReadingKeys starts (blocking) reading user's input.

func Stop

func Stop()

Stop stopps and cleans up dpcmder UI.

Types

This section is empty.

Directories

Path Synopsis
Package out implements producing output to terminal user interface.
Package out implements producing output to terminal user interface.

Jump to

Keyboard shortcuts

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