cli

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: GPL-2.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSetupCancelled = errors.New("setup cancelled")

ErrSetupCancelled is returned when the user aborts the wizard before anything is written.

Functions

func BuildClientConfigsFromLinks(links []string) ([]*config.Config, [][]*sudoku.Table, error)

func BuildClientTableSets

func BuildClientTableSets(configs []*config.Config) ([][]*sudoku.Table, error)

func LoadConfigs

func LoadConfigs(paths []string) ([]*config.Config, error)

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.

Jump to

Keyboard shortcuts

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