app

package
v0.0.0-...-d51039a Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintVersion

func PrintVersion()

PrintVersion ...

func WriteAppConfig

func WriteAppConfig(appConfig *config.AppConfig)

WriteAppConfig will write the app config

Types

type App

type App struct {
	*config.AppConfig
	*software.UpdateConfig
	InstallPath string
}

App holds the environment variables for the user

func NewApp

func NewApp(appConfig *config.AppConfig, updateConfig *software.UpdateConfig) *App

NewApp ...

func (*App) PrintConfig

func (a *App) PrintConfig()

PrintConfig will print the app config

func (*App) RunLatestApp

func (a *App) RunLatestApp(logLevel string, args []string)

RunLatestApp will run the latest app

func (*App) RunNamedApp

func (a *App) RunNamedApp(name, logLevel string, args []string)

RunNamedApp will run the app with given (partial) name If there are multiple matches, it will ask for user to choose

func (*App) RunWithList

func (a *App) RunWithList(logLevel string, args []string)

RunWithList will list the last 5 apps and will ask user to select 1

func (*App) Update

func (a *App) Update()

Update will update the app to latest version released on Github

Jump to

Keyboard shortcuts

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