spec

package
v0.0.57 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 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

Overview

Package spec writes a run's spec file: the pursuit, the change and the text of the map's slice for the change's capability, which the run's process reads to know what to build. It writes that one file and nothing else.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Slice

func Slice(ctx context.Context, root, capability string) (string, error)

Slice returns what physa map slice <capability> prints for the map in root. It records no slice record.

func Write

func Write(dir string, in In) (string, error)

Write writes dir/spec.md, mode 0600, making dir with mode 0700, and returns the file's absolute path. The slice goes last, since it has headings of its own.

Types

type In

type In struct {
	Pursuit string
	Change  plan.Change
	Slice   string
}

In is what a run's spec file says: the pursuit, the change and the text of the map's slice for the change's capability.

Jump to

Keyboard shortcuts

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