validationprompt

package
v0.135.19 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package validationprompt resolves a validationPrompt config value into criteria text.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver interface {
	Resolve(ctx context.Context, value string) (string, bool, error)
}

Resolver resolves a validationPrompt config value into criteria text.

  • empty value → ("", false, nil)
  • file path (exists) → (file contents, true, nil)
  • path-shaped, missing → ("", false, nil) — log warning at caller
  • inline text → (value, true, nil)
  • file read error → ("", false, err)

func NewResolver

func NewResolver() Resolver

NewResolver creates a filesystem-backed Resolver.

Jump to

Keyboard shortcuts

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