cli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(docsFS embed.FS) *cobra.Command

New creates the root command for the astro CLI.

Types

type BuildInfo

type BuildInfo struct {
	Version   string
	Commit    string
	Date      string
	GoVersion string
	Platform  string
}

BuildInfo describes the running binary.

func (BuildInfo) String

func (b BuildInfo) String() string

String renders the build information on one line.

It carries no program name: cobra's --version template already prefixes one, and the version subcommand adds its own.

type UnitSizer

type UnitSizer func(data []byte) int

UnitSizer reports the length of the unit starting at the front of data, or a value below one when the data so far is too short to tell.

It mirrors the package-level sizers the protocol packages expose, such as spp.PacketSizer.

Jump to

Keyboard shortcuts

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