Documentation
¶
Overview ¶
Package prompts provides interactive terminal prompting via huh/v2. It is an optional module — import it only when you need interactive prompts, to avoid pulling in bubbles, bubbletea, and the full TUI framework.
Usage:
import (
"github.com/larsartmann/cmdguard/prompts"
v3 "github.com/larsartmann/cmdguard/v3/pkg/cmdguard/v3"
)
func main() {
prompts.Register() // wire huh-based prompting into cmdguard
// ... build CLI as normal
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HuhRunner ¶
type HuhRunner struct{}
HuhRunner implements v3.PromptRunner using the huh/v2 TUI library.
func (*HuhRunner) PromptSelect ¶
Click to show internal directories.
Click to hide internal directories.