app

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config        *config.AppConfig
	Log           *logrus.Entry
	OSCommand     *commands.OSCommand
	DockerCommand *commands.DockerCommand
	Tr            *i18n.TranslationSet
	ErrorChan     chan error

	RLInstance *readline.Instance
	// contains filtered or unexported fields
}

App struct

func NewApp

func NewApp(config *config.AppConfig) (*App, error)

NewApp bootstrap a new application

func (*App) Close

func (app *App) Close() error

func (*App) KnownError

func (app *App) KnownError(err error) (string, bool)

KnownError takes an error and tells us whether it's an error that we know about where we can print a nicely formatted version of it rather than panicking with a stack trace

func (*App) ReadInput added in v0.1.2

func (app *App) ReadInput(prompt string) string

ReadInput is a helper to read input using readline

func (*App) Run

func (app *App) Run() error

func (*App) RunInteractiveCLI

func (app *App) RunInteractiveCLI() error

RunInteractiveCLI runs the application in interactive CLI mode

Jump to

Keyboard shortcuts

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