cmd

package
v0.1.0 Latest Latest
Warning

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

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

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

func NewRootCommand() *cobra.Command

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.

Jump to

Keyboard shortcuts

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