setupwizard

package
v3.0.0-alpha.57 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultsPath

func GetDefaultsPath() (string, error)

GetDefaultsPath returns the path to the defaults.yaml file

func SaveGlobalDefaults

func SaveGlobalDefaults(d GlobalDefaults) error

SaveGlobalDefaults saves the global defaults to the config file

Types

type AuthorDefaults

type AuthorDefaults = defaults.AuthorDefaults

type DependencyStatus

type DependencyStatus struct {
	Name           string `json:"name"`
	Installed      bool   `json:"installed"`
	Version        string `json:"version,omitempty"`
	Status         string `json:"status"` // "installed", "not_installed", "needs_update"
	Required       bool   `json:"required"`
	Message        string `json:"message,omitempty"`
	InstallCommand string `json:"installCommand,omitempty"`
	HelpURL        string `json:"helpUrl,omitempty"`
}

DependencyStatus represents the status of a dependency

type DockerStatus

type DockerStatus struct {
	Installed    bool   `json:"installed"`
	Running      bool   `json:"running"`
	Version      string `json:"version,omitempty"`
	ImageBuilt   bool   `json:"imageBuilt"`
	ImageName    string `json:"imageName"`
	PullProgress int    `json:"pullProgress"`
	PullStatus   string `json:"pullStatus"` // "idle", "pulling", "complete", "error"
	PullError    string `json:"pullError,omitempty"`
}

DockerStatus represents Docker installation and image status

type GlobalDefaults

type GlobalDefaults = defaults.GlobalDefaults

Re-export types for convenience

func DefaultGlobalDefaults

func DefaultGlobalDefaults() GlobalDefaults

DefaultGlobalDefaults returns sensible defaults for first-time users

func LoadGlobalDefaults

func LoadGlobalDefaults() (GlobalDefaults, error)

LoadGlobalDefaults loads the global defaults from the config file

type InstallRequest

type InstallRequest struct {
	Command string `json:"command"`
}

InstallRequest represents a request to install a dependency

type InstallResponse

type InstallResponse struct {
	Success bool   `json:"success"`
	Output  string `json:"output"`
	Error   string `json:"error,omitempty"`
}

InstallResponse represents the result of an install attempt

type ProjectDefaults

type ProjectDefaults = defaults.ProjectDefaults

type SystemInfo

type SystemInfo struct {
	OS           string `json:"os"`
	Arch         string `json:"arch"`
	WailsVersion string `json:"wailsVersion"`
	GoVersion    string `json:"goVersion"`
	HomeDir      string `json:"homeDir"`
	OSName       string `json:"osName,omitempty"`
	OSVersion    string `json:"osVersion,omitempty"`
}

SystemInfo contains detected system information

type WailsConfig

type WailsConfig struct {
	Info WailsConfigInfo `json:"info" yaml:"info"`
}

WailsConfig represents the wails.yaml configuration

type WailsConfigInfo

type WailsConfigInfo struct {
	CompanyName       string `json:"companyName" yaml:"companyName"`
	ProductName       string `json:"productName" yaml:"productName"`
	ProductIdentifier string `json:"productIdentifier" yaml:"productIdentifier"`
	Description       string `json:"description" yaml:"description"`
	Copyright         string `json:"copyright" yaml:"copyright"`
	Comments          string `json:"comments,omitempty" yaml:"comments,omitempty"`
	Version           string `json:"version" yaml:"version"`
}

WailsConfigInfo represents the info section of wails.yaml

type Wizard

type Wizard struct {
	// contains filtered or unexported fields
}

Wizard is the setup wizard server

func New

func New() *Wizard

New creates a new setup wizard

func (*Wizard) Run

func (w *Wizard) Run() error

Run starts the wizard and opens it in the browser

type WizardState

type WizardState struct {
	Dependencies []DependencyStatus `json:"dependencies"`
	System       SystemInfo         `json:"system"`
	StartTime    time.Time          `json:"startTime"`
}

WizardState represents the complete wizard state

Jump to

Keyboard shortcuts

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