app

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package app wires the reproducible asset commands to their bounded inputs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUsage

func IsUsage(err error) bool

IsUsage reports whether err is command usage failure.

func Run

func Run(ctx context.Context, deps Dependencies, args []string, stdout, stderr io.Writer) error

Run dispatches one offline asset command.

Types

type Dependencies

type Dependencies struct {
	Repo       string
	Rasterizer platform.Rasterizer
}

Dependencies contains the narrow injectable process boundaries. A nil Rasterizer uses pinned rsvg-convert for build and verify.

type UsageError

type UsageError struct {
	// contains filtered or unexported fields
}

UsageError describes invalid command or flag syntax. Callers map it to exit status 2; all other errors are command execution failures.

func (*UsageError) Error

func (err *UsageError) Error() string

Jump to

Keyboard shortcuts

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