root

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package root wires together all CLI subcommands and provides the top-level Execute entry point used by main. It also owns the styled help renderer and Viper configuration bootstrap.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"
	Commit    = "unknown"
	BuildDate = "unknown"
	Schema    = "0.1.3"
)

Version information - set via ldflags at build time Example: go build -ldflags "-X github.com/cthonicasoftware/astrolabe-cli/cmd/astrolabe/root.Version=1.0.0" TODO: verify version schema matches most recent git tag.

Functions

func Execute

func Execute() error

Execute runs the root cobra command and prints any error to stderr. It is the sole entry point called by main.

Types

type CaptureComponents

type CaptureComponents struct {
	Source          captureManagedSource
	Manifest        core.Manifest
	CaptureSettings core.CaptureSettings
}

type CaptureRequest

type CaptureRequest struct {
	SerialConfig *sources.Config
	TCPConfig    *sources.TCPConfig
	RunLabel     string
	Meta         core.ManifestOptions
}

type CaptureResult

type CaptureResult struct {
	Run         *core.Run
	Interrupted bool
}

type CaptureService

type CaptureService interface {
	Run(ctx context.Context, req CaptureRequest) (CaptureResult, error)
	BuildComponents(req CaptureRequest) (CaptureComponents, error)
}

Jump to

Keyboard shortcuts

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