options

package
v0.260224.1130 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddStartFlags

func AddStartFlags(cmd *cobra.Command, flags *StartFlags)

AddStartFlags adds all start-related flags to a command This is shared between start, restart, gui, and slim commands

Types

type StartFlags

type StartFlags struct {
	Port                 int
	Host                 string
	EnableUI             bool
	EnableDebug          bool
	EnableOpenBrowser    bool
	EnableStyleTransform bool
	Daemon               bool
	LogFile              string
	PromptRestart        bool
	HTTPS                bool
	HTTPSCertDir         string
	HTTPSRegen           bool
	RecordMode           string
	RecordDir            string
	Expr                 string
}

StartFlags holds flags for starting the server

type StartServerOptions

type StartServerOptions struct {
	Host              string
	Port              int
	EnableUI          bool
	EnableDebug       bool
	EnableOpenBrowser bool
	Daemon            bool
	LogFile           string
	PromptRestart     bool
	HTTPS             struct {
		Enabled    bool
		CertDir    string
		Regenerate bool
	}
	RecordMode           string
	RecordDir            string
	ExperimentalFeatures map[string]bool
}

StartServerOptions contains resolved options for starting the server

func ResolveStartOptions

func ResolveStartOptions(cmd *cobra.Command, flags StartFlags, appConfig *config.AppConfig) StartServerOptions

ResolveStartOptions resolves CLI flags with config file defaults Priority: CLI flag > Config > Default

Jump to

Keyboard shortcuts

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