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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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