MCPcopy Create free account
hub / github.com/driangle/taskmd / wizardConfirm

Function wizardConfirm

apps/cli/internal/cli/importcmd.go:395–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

393}
394
395func wizardConfirm() error {
396 var confirm bool
397 err := huh.NewConfirm().Title("Import tasks?").Value(&confirm).Run()
398 if err != nil {
399 return fmt.Errorf("wizard cancelled: %w", err)
400 }
401 if !confirm {
402 return fmt.Errorf("import cancelled by user")
403 }
404 return nil
405}
406
407func promptInput(title, description, placeholder string, value *string) error {
408 input := huh.NewInput().Title(title).Value(value)

Callers 1

runImportWizardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected