Skip to content

Commit

Permalink
refactor: Delete unused prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
HRemonen committed Dec 6, 2023
1 parent f7649a2 commit 1d1809c
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pkg/commit/prompts.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,6 @@ func PromptCommitType(prompt csprompt.Prompt) (string, error) {
return typeResult, err
}

// PromptForBool prompts the user to enter a boolean value.
func PromptForBool(prompt csprompt.Prompt) (bool, error) {
promptBool := promptui.Prompt{
Label: prompt.Label,
Validate: prompt.Validate,
Default: prompt.Default,
}

result, err := promptBool.Run()
if err != nil {
return false, err
}

return result == "Y" || result == "y", nil
}

// PromptForString prompts the user to enter a string.
func PromptForString(prompt csprompt.Prompt) (string, error) {
promptString := promptui.Prompt{
Expand Down

0 comments on commit 1d1809c

Please sign in to comment.