Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrSetupCancelled = errors.New("setup cancelled")
ErrSetupCancelled is returned when the user aborts the wizard before anything is written.
Functions ¶
func BuildClientTableSets ¶
Types ¶
type WizardResult ¶
type WizardResult struct {
ServerConfig *config.Config
ClientConfig *config.Config
ServerConfigPath string
ClientConfigPath string
ShortLink string
}
WizardResult aggregates outputs from the interactive setup.
func RunSetupWizard ¶
func RunSetupWizard(serverPath, publicHost string) (*WizardResult, error)
RunSetupWizard asks for the few settings that differ between deployments, writes server and client configs, prints a short link and returns the server config ready to run.