prompt

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptConfirm

func PromptConfirm(message string, defaultYes bool) (bool, error)

PromptConfirm prompts the user for yes/no confirmation

func PromptConfirmFunc

func PromptConfirmFunc(message string, defaultYes bool, inputFunc func() (bool, error)) (bool, error)

PromptConfirmFunc allows dependency injection for testing

func PromptForChangeType

func PromptForChangeType() (types.ChangeType, error)

PromptForChangeType prompts the user to select a change type

func PromptForChangeTypeFunc

func PromptForChangeTypeFunc(inputFunc func() (types.ChangeType, error)) (types.ChangeType, error)

PromptForChangeTypeFunc allows dependency injection for testing

func PromptForPackages

func PromptForPackages(available []string) ([]string, error)

PromptForPackages prompts the user to select one or more packages

func PromptForPackagesFunc

func PromptForPackagesFunc(available []string, inputFunc func() ([]string, error)) ([]string, error)

PromptForPackagesFunc allows dependency injection for testing

func PromptReviewPackages

func PromptReviewPackages(packages []config.Package) ([]config.Package, error)

PromptReviewPackages prompts the user to review and select detected packages

func PromptReviewPackagesFunc

func PromptReviewPackagesFunc(packages []config.Package, inputFunc func() ([]config.Package, error)) ([]config.Package, error)

PromptReviewPackagesFunc allows dependency injection for testing

func PromptSummary

func PromptSummary(projectPath string) (string, error)

PromptSummary prompts for a consignment summary with text area

func PromptSummaryWithFunc

func PromptSummaryWithFunc(projectPath string, fn PromptSummaryFunc) (string, error)

PromptSummaryWithFunc allows injection of custom prompt function for testing

func PromptTextInput

func PromptTextInput(message, defaultValue string) (string, error)

PromptTextInput prompts the user for text input

func PromptTextInputFunc

func PromptTextInputFunc(message, defaultValue string, inputFunc func() (string, error)) (string, error)

PromptTextInputFunc allows dependency injection for testing

Types

type PromptSummaryFunc

type PromptSummaryFunc func(projectPath string) (string, error)

PromptSummaryFunc is the function signature for prompting summary

type RepoType

type RepoType string

RepoType represents the type of repository

const (
	RepoTypeMonorepo RepoType = "monorepo"
	RepoTypeSingle   RepoType = "single"
)

func PromptRepoType

func PromptRepoType() (RepoType, error)

PromptRepoType prompts the user to select repository type

func PromptRepoTypeFunc

func PromptRepoTypeFunc(inputFunc func() (RepoType, error)) (RepoType, error)

PromptRepoTypeFunc allows dependency injection for testing

Jump to

Keyboard shortcuts

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