Documentation
¶
Overview ¶
Package cli handles command-line dispatch before heavy application init.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" Commit = "unknown" BuildDate = "unknown" )
Build metadata (override via -ldflags at release time).
Functions ¶
func EarlyDispatch ¶
EarlyDispatch handles CLI-only commands (help, version) and normalizes argv for optional serve-style subcommands. If it returns handled=true, the process should exit with code exitCode. When handled is false, InitFlag may parse remaining flags (e.g. -createDatabase). openBrowser is true only when the user explicitly passed a serve-style subcommand (serve / gateway / run / start); bare invocation returns false so the browser is not opened automatically.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.