Skip to content

Commit f06c5c3

Browse files
Add function comments
1 parent 7fe81c7 commit f06c5c3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/paas/migration.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ func NewCmdMigrate(in io.Reader, out, errout io.Writer) *cobra.Command {
170170
return cmd
171171
}
172172

173+
// reMigrationConfirm makes sure that user enters yes/no correctly.
173174
func reMigrationConfirm(in io.Reader, writer io.Writer) bool {
174175
inputExplain := "Do you want to run a new migration?[y/N]: "
175176

@@ -179,6 +180,7 @@ func reMigrationConfirm(in io.Reader, writer io.Writer) bool {
179180
return value == "y"
180181
}
181182

183+
// confirmationValidate checks yes/no entry
182184
func confirmationValidate(input string) (bool, error) {
183185
if input != "y" && input != "N" {
184186
return false, fmt.Errorf("enter a valid answer 'y' for \"yes\" or 'N' for \"no\"")

0 commit comments

Comments
 (0)