distro

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package distro is the importable entry point of dev-cockpit. The shipped binary is the thin main in cmd/dev-cockpit; a custom distribution writes a main of its own that calls Main, see the custom distributions section of the README. The CLI itself lives in internal/cli, this package is the facade in front of it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(b Build)

Main runs the dev-cockpit CLI and exits the process on an error. It is the one call a distribution main makes.

Types

type Build

type Build struct {
	Version          string
	RepoURL          string
	UpdateFeedURL    string
	UpdateFeedFormat string
	// ServePlugins are constructed by the distribution's main and handed in
	// here as ordered named pairs, there is no registry and a plugin does not
	// name itself. They configure at serve start, when the configuration they
	// read is loaded. The surface is experimental, see the plugin package.
	ServePlugins []plugin.Named[plugin.ServePlugin]
}

Build describes the distribution a binary belongs to: the release version, the web page of its repository, the release feed update checks read, in github or gitlab format, and the plugins compiled in. A zero field keeps the compiled default.

Jump to

Keyboard shortcuts

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