options

package
v0.0.62 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasRequiredOptions

func HasRequiredOptions(metadata catalog.FeatureMetadata) bool

HasRequiredOptions checks if a feature has any required options

func ParseOptionOverrides

func ParseOptionOverrides(metadata catalog.FeatureMetadata, rawOptions []string) (map[string]any, error)

ParseOptionOverrides parses and validates --option key=value pairs against metadata.

func PromptForOptions

func PromptForOptions(metadata catalog.FeatureMetadata) (map[string]any, error)

PromptForOptions collects user input for feature options interactively

func PromptForOptionsWithOverrides

func PromptForOptionsWithOverrides(metadata catalog.FeatureMetadata, overrides map[string]any) (map[string]any, error)

PromptForOptionsWithOverrides collects user input for feature options interactively, using any provided overrides as fixed values.

func ResolveOptionsForNonInteractive

func ResolveOptionsForNonInteractive(metadata catalog.FeatureMetadata) (map[string]any, error)

ResolveOptionsForNonInteractive resolves feature options without prompting. Required options must have valid defaults in non-interactive mode.

func ResolveOptionsForNonInteractiveWithOverrides

func ResolveOptionsForNonInteractiveWithOverrides(metadata catalog.FeatureMetadata, overrides map[string]any) (map[string]any, error)

ResolveOptionsForNonInteractiveWithOverrides resolves feature options without prompting. Required options must have valid defaults or explicit overrides in non-interactive mode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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