stackpreset

package
v0.14.7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Code generated by internal/tools/commandcontractgen; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(presetID string) (report.Record, error)

func BuildWithRenderer added in v0.2.0

func BuildWithRenderer(presetID string, renderer cliexec.Renderer) (report.Record, error)

func IDs added in v0.2.0

func IDs() []string

func IsPresetID

func IsPresetID(value string) bool

Types

type PlanningHint added in v0.7.0

type PlanningHint struct {
	PresetID                  string
	PrimaryLanguages          []string
	StarterEnvironmentClasses []string
	StarterWitnessKinds       []string
}

PlanningHint is the compact, child-owned stack projection used by repository-neutral planners. It intentionally omits path suggestions and rendered commands; callers can request the complete preset report when needed.

func AdmitPlanningHint added in v0.7.0

func AdmitPlanningHint(raw any) (PlanningHint, error)

AdmitPlanningHint validates a serialized planning hint against the preset owner instead of asking a parent command to duplicate its fields.

func PlanningHintFor added in v0.7.0

func PlanningHintFor(presetID string) (PlanningHint, bool)

PlanningHintFor returns the bounded stack facts that are useful during adoption planning without duplicating the complete preset contract.

func (PlanningHint) JSONValue added in v0.7.0

func (hint PlanningHint) JSONValue() map[string]any

type Profile

type Profile struct {
	ExpectedFiles             []string
	PrimaryLanguages          []string
	Purpose                   string
	StarterEnvironmentClasses []string
	StarterProofLikePaths     []string
	StarterWitnessKinds       []string
	SuggestedCommands         []string
}

func ProfileFor

func ProfileFor(presetID string) (Profile, bool)

func ProfileForWithRenderer added in v0.2.0

func ProfileForWithRenderer(presetID string, renderer cliexec.Renderer) (Profile, bool)

Jump to

Keyboard shortcuts

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