-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Update variable names and rename imported go-prompt
- Loading branch information
Showing
5 changed files
with
49 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
Package csprompt provides a struct for defining promptui prompts in CommitSense. | ||
The CSPrompt struct in this package represents a prompt object that can be used with the promptui library. It includes fields for the prompt's label, validation function, and default value. | ||
Usage: | ||
- Create a CSPrompt object to define custom prompts for user input. | ||
- Use the CSPrompt object in your CommitSense commands for interactive prompts. | ||
For more information on how to use prompts with CommitSense, refer to the package-specific functions and commands. | ||
Copyright © 2023 HENRI REMONEN <[email protected]> | ||
*/ | ||
package csprompt | ||
|
||
import "commitsense/pkg/item" | ||
|
||
// CSPrompt represents a promptui prompt object used for user input. | ||
type CSPrompt struct { | ||
Label string | ||
Items []*item.Item | ||
CursorPos int | ||
Validate func(string) error | ||
Default string | ||
} | ||
|
This file was deleted.
Oops, something went wrong.