app

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 12 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.AppConfigurer
	Log        *logrus.Entry
	OSCommand  *commands.OSCommand
	NpmManager *commands.NpmManager
	Gui        *gui.Gui
	Tr         *i18n.Localizer
	Updater    *updates.Updater // may only need this on the Gui
	// contains filtered or unexported fields
}

App struct

func NewApp

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

NewApp bootstrap a new application

func (*App) Close

func (app *App) Close() error

Close closes any resources

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) Run

func (app *App) Run() error

Jump to

Keyboard shortcuts

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