systemcmd

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package systemcmd implements srcpack's built-in system and informational commands.

Index

Constants

View Source
const (
	ID = "srcpack_system"
)

Variables

Functions

func Bundle

func Bundle(_ map[string]string) compiler.Bundle

func DoctorRawAction

func DoctorRawAction() action.AnyAction

DoctorRawAction returns the raw-config action used by doctor_shape(). The host registers it with the name system.doctor.raw; it is intentionally separate from Bundle so command wiring can opt into the hybrid doctor flow explicitly.

func HelpText

func HelpText() string

HelpText returns the full static command reference with the current tree-depth default.

func Loader

func Loader() compiler.SourceLoader

Loader resolves this bundle's embedded source files by their namespaced path.

func Version

func Version(ctx context.Context) string

Version reads the version supplied by the host, falling back to the development version.

func WithVersion

func WithVersion(ctx context.Context, version string) context.Context

WithVersion carries the host's linked version into system flows without package-global state.

Types

This section is empty.

Jump to

Keyboard shortcuts

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