Documentation
¶
Overview ¶
Package cmd implements the vortex command-line interface (build plan M1.3), built on spf13/cobra. The root command owns the global persistent flags (--config, --log-level, --json) and initialises the structured logger in its PersistentPreRunE so every subcommand has a ready logger before it runs.
Subcommands (start, stop, status, reload, version) are added one at a time in their own files. With no subcommand, the root command boots VORTEX: it loads and validates the config, starts the management API, wires SIGHUP hot-reload, and blocks until a shutdown signal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute runs the root command and exits the process with an appropriate code.
func NewRootCommand ¶
NewRootCommand constructs the root cobra command with global flags wired up. It is exported so tests can build an isolated command tree.
Types ¶
This section is empty.