Documentation
¶
Index ¶
- func PromptConfirm(message string, defaultYes bool) (bool, error)
- func PromptConfirmFunc(message string, defaultYes bool, inputFunc func() (bool, error)) (bool, error)
- func PromptForChangeType() (types.ChangeType, error)
- func PromptForChangeTypeFunc(inputFunc func() (types.ChangeType, error)) (types.ChangeType, error)
- func PromptForPackages(available []string) ([]string, error)
- func PromptForPackagesFunc(available []string, inputFunc func() ([]string, error)) ([]string, error)
- func PromptReviewPackages(packages []config.Package) ([]config.Package, error)
- func PromptReviewPackagesFunc(packages []config.Package, inputFunc func() ([]config.Package, error)) ([]config.Package, error)
- func PromptSummary(projectPath string) (string, error)
- func PromptSummaryWithFunc(projectPath string, fn PromptSummaryFunc) (string, error)
- func PromptTextInput(message, defaultValue string) (string, error)
- func PromptTextInputFunc(message, defaultValue string, inputFunc func() (string, error)) (string, error)
- type PromptSummaryFunc
- type RepoType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PromptConfirm ¶
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 ¶
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 ¶
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 ¶
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 ¶
PromptTextInput prompts the user for text input
Types ¶
type PromptSummaryFunc ¶
PromptSummaryFunc is the function signature for prompting summary
type RepoType ¶
type RepoType string
RepoType represents the type of repository
func PromptRepoType ¶
PromptRepoType prompts the user to select repository type