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
func DefaultProjectsDir ¶ added in v1.261022.1
DefaultProjectsDir is the Projects data directory of the instance whose config directory is configDir: a sibling named "<config dir>-project" (~/.tingly-box-project by default), so instances never share a database and a thread's working directory never sits next to the config.
Types ¶
type StartFlags ¶
type StartFlags struct {
Port int
Host string
EnableUI bool
EnableDebug bool
EnableOpenBrowser bool
EnableStyleTransform bool
Daemon bool
LogFile string
ProjectsDir 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
// RecordDir is where scenario recording sinks write when the scenario's
// recording_v2 flag enables recording. Always the config-dir default —
// recording enablement is flag-driven, not a CLI concern.
RecordDir string
// ProjectsDir is where Projects keeps its data: --projects-dir, else
// "<config dir>-project", beside the config dir and never inside it.
ProjectsDir string
}
StartServerOptions contains resolved options for starting the server
func ResolveStartOptions ¶
func ResolveStartOptions(cmd *cobra.Command, flags StartFlags, appConfig *appconfig.AppConfig) StartServerOptions
ResolveStartOptions resolves CLI flags with config file defaults Priority: CLI flag > Config > Default