Skip to content

Commit 97e10bb

Browse files
committed
adjust statuses
1 parent 78159cd commit 97e10bb

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

internal/cmd/group_aws_migrate.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@ var groupAwsMigrationInfoCmd = &cobra.Command{
5050
}
5151

5252
if info.Status == "pending" {
53-
fmt.Printf("Migration is %v\n%v", internal.Emph("in progress"), info.Comment)
53+
fmt.Printf("Migration is %v\n%v\n", internal.Emph("in progress"), info.Comment)
5454
} else if info.Status == "finished" {
55-
fmt.Printf("Migration is %v", internal.Emph("finished"))
55+
fmt.Printf("Migration is %v\n", internal.Emph("finished"))
56+
} else if info.Status == "aborted" {
57+
fmt.Printf("Migration was %v\n", internal.Emph("aborted"))
5658
} else if info.Status == "none" {
57-
fmt.Printf("Migration is %v\n\n%v", internal.Emph("not started"), info.Comment)
59+
fmt.Printf("Migration is %v\n", internal.Emph("not started"))
5860
}
5961

6062
return nil
@@ -89,10 +91,13 @@ var groupAwsMigrationStartCmd = &cobra.Command{
8991
}
9092

9193
if info.Status == "pending" {
92-
fmt.Printf("Migration is %v\n%v", internal.Emph("in progress"), info.Comment)
94+
fmt.Printf("Migration is %v\n%v\n", internal.Emph("in progress"), info.Comment)
9395
return nil
9496
} else if info.Status == "finished" {
95-
fmt.Printf("Migration is %v", internal.Emph("finished"))
97+
fmt.Printf("Migration is %v\n", internal.Emph("finished"))
98+
return nil
99+
} else if info.Status == "aborted" {
100+
fmt.Printf("Migration was %v\nPlease, contact with support@turso.tech for further assistance with group migration\n", internal.Emph("aborted"))
96101
return nil
97102
}
98103

0 commit comments

Comments
 (0)