cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 13 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 {
	Build BuildInfo

	ConfigDir string
	Output    output.Format //todo migrate
	Config    *config.Config
	// contains filtered or unexported fields
}

func NewApp

func NewApp(build BuildInfo) *App

func (*App) AccountManager

func (a *App) AccountManager() account.Manager

func (*App) Fatal

func (a *App) Fatal(err error)

func (*App) GameManager

func (a *App) GameManager() game.Manager

func (*App) JavaManager

func (a *App) JavaManager() java.Manager

func (*App) Present

func (a *App) Present(obj interface{}) error

func (*App) ProfileManager

func (a *App) ProfileManager() profile.Manager

func (*App) VersionManager

func (a *App) VersionManager() *game.VersionManager

type BuildInfo

type BuildInfo struct {
	Version  string
	Commit   string
	Date     string
	Modified bool
	Source   bool
}

type Error

type Error struct {
	Message string
	Hint    string
	Cmd     *cobra.Command
}

func (*Error) Error

func (e *Error) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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