Skip to content

Commit f798c09

Browse files
authored
Merge pull request #15 from payamQorbanpour/feature/data_center_migration
Add function comments
2 parents aff0ea9 + f06c5c3 commit f798c09

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)