cli

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Overview

Package cli implements the Console CLI: a single static binary that serves the dashboard + API, manages feature flags and status components, and runs the onboarding assistant (Human and AI-Assisted modes).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(opts Options) int

Main runs the Console CLI with os.Args and returns the process exit code (0 on success, 1 on error). The caller passes it to os.Exit.

Types

type Options

type Options struct {
	// Version is the release version, typically stamped by the calling main
	// via -ldflags "-X main.version=<tag>". Empty or "dev" falls back to the
	// module version recorded by the Go toolchain (e.g. `go install
	// …/cmd/console@vX.Y.Z`).
	Version string
	// Recorder builds the instrumentation Recorder for a config. Nil selects
	// app.DefaultRecorder (obs.Nop, or an in-memory registry when cfg.Metrics).
	Recorder func(cfg config.Config) obs.Recorder
}

Options configures Main. A second main package (for example an OTel-enabled build) reuses the CLI by supplying its own Options.

Jump to

Keyboard shortcuts

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