cli

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegenerateDatapackInternal

func RegenerateDatapackInternal(w *Wizard, exDB, exMaps bool) error

func Run

func Run()

Types

type Credentials

type Credentials struct {
	Username string
	Password string
}

type DB

type DB struct {
	Driver string
	URL    string
}

type WizFunc

type WizFunc func(w *Wizard, prev WizFunc) WizFunc

func CreateHomeserver

func CreateHomeserver(wiz *Wizard, prev WizFunc) WizFunc

func CreateWorldServer

func CreateWorldServer(showHelp bool) WizFunc

func GetContentVolumeWorldServer

func GetContentVolumeWorldServer(w *Wizard) WizFunc

func ModifyHomeserver

func ModifyHomeserver(wiz *Wizard, prev WizFunc) WizFunc

func ModifyWorldserver

func ModifyWorldserver(w *Wizard, prev WizFunc) WizFunc

func RegenerateDatapack

func RegenerateDatapack(w *Wizard, prev WizFunc) WizFunc

func RunExtractorWorldServer

func RunExtractorWorldServer(w *Wizard) WizFunc

func SetupHomeserver

func SetupHomeserver(showMsg bool) WizFunc

func SetupWorldServer

func SetupWorldServer(w *Wizard, prev WizFunc) WizFunc

func SplashScreen

func SplashScreen(w *Wizard, prev WizFunc) WizFunc

type Wizard

type Wizard struct {
	Menu                WizFunc
	AskedGophercraftDir bool
	GophercraftDir      string
	Configurator        *wizard.Configurator
	HomeConfigurator    *wizard.HomeConfigurator
	WorldConfigurator   *wizard.WorldConfigurator
	CachedCredentials   map[string]*Credentials
	// contains filtered or unexported fields
}

func NewWizard

func NewWizard(loc string) *Wizard

func (*Wizard) AskDB

func (wiz *Wizard) AskDB(d *DB) error

func (*Wizard) ConfirmConfigDir

func (w *Wizard) ConfirmConfigDir() error

func (*Wizard) Fatal

func (wiz *Wizard) Fatal(err error) WizFunc

func (*Wizard) Ok

func (wiz *Wizard) Ok(args ...interface{})

func (*Wizard) ReadLogin

func (wiz *Wizard) ReadLogin(kind string, creds *Credentials) error

func (*Wizard) Run

func (w *Wizard) Run()

func (*Wizard) ValidateConfigName

func (w *Wizard) ValidateConfigName(configNameA any) error

func (*Wizard) ValidateContentVolumePath

func (w *Wizard) ValidateContentVolumePath(str any) error

func (*Wizard) ValidateDBURL

func (w *Wizard) ValidateDBURL(value any) error

func (*Wizard) Warn

func (wiz *Wizard) Warn(args ...interface{})

Jump to

Keyboard shortcuts

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