cli

package
v1.783.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

func EarlyDispatch() (handled bool, exitCode int, openBrowser bool)

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.

Jump to

Keyboard shortcuts

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