std

module
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT

README

std

CI Go Reference

std is a Go module of standard-library-only shared packages for frostyard programs — updex, clix, chairlift and other tools — and it carries the Rust crate frostyard-problems for frostyard apps written in Rust.

Status: pre-release. Releases are v0 tags, and the API can change between minor releases.

Documentation: pkg.go.dev/github.com/frostyard/std

What it does

Package What it gives you
reporter A Reporter interface for progress output, with text, JSON Lines and silent implementations.
problems Writes the panics and coded errors of an app to the local systemd journal as problem records, and reads them back.
rust/ (frostyard-problems) The same record writer for Rust apps, in the Rust standard library only.

Install

go get github.com/frostyard/std

The Rust crate is not on crates.io: add it as a cargo git dependency on a std tag, as rust/README.md shows.

Use

package main

import (
	"os"

	"github.com/frostyard/std/reporter"
)

func main() {
	r := reporter.NewTextReporter(os.Stdout)

	r.Step(1, 2, "Download the image")
	r.Progress(50, "12 of 24 MiB")
	r.Step(2, 2, "Write the system extension links")
	r.Complete("Done", nil)
}

Develop

mise install   # golangci-lint, svu, Rust
make ci        # the canonical gate (what CI's Verify job runs)

Design and invariants: docs/design/overview.md.

Where to go next

Directories

Path Synopsis
_examples
deploy command
Command deploy simulates a multi-step deployment pipeline to demonstrate the reporter package's Step, Message, Warning, and Complete methods.
Command deploy simulates a multi-step deployment pipeline to demonstrate the reporter package's Step, Message, Warning, and Complete methods.
fileprocess command
Command fileprocess simulates batch file processing to demonstrate the reporter package's Step, Progress, Message, and Complete methods.
Command fileprocess simulates batch file processing to demonstrate the reporter package's Step, Progress, Message, and Complete methods.
healthcheck command
Command healthcheck simulates checking multiple services to demonstrate the reporter package's Step, Message, MessagePlain, Warning, Error, and Complete methods.
Command healthcheck simulates checking multiple services to demonstrate the reporter package's Step, Message, MessagePlain, Warning, Error, and Complete methods.
migration command
Command migration simulates a data migration to demonstrate the reporter package's Step, Progress, Message, Warning, and Complete methods.
Command migration simulates a data migration to demonstrate the reporter package's Step, Progress, Message, Warning, and Complete methods.
Package problems writes problem records (panics and coded errors) of a frostyard app to the local systemd journal, and reads them back.
Package problems writes problem records (panics and coded errors) of a frostyard app to the local systemd journal, and reads them back.
Package reporter provides a progress reporting interface with text, JSON Lines, and no-op implementations.
Package reporter provides a progress reporting interface with text, JSON Lines, and no-op implementations.

Jump to

Keyboard shortcuts

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