Skip to content

Commit 8b2eb7b

Browse files
committed
feat: simplify current confirm step.
Signed-off-by: Asklv <lvbo@cloudpilot.ai>
1 parent 41f307d commit 8b2eb7b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

select_workloads.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,15 @@ func selectWorkloads(scanner *bufio.Scanner) ([]Workload, error) {
5353
}
5454

5555
printSelectedWorkloadsTable(selectedWorkloads)
56-
fmt.Print("Enter 'confirm' to confirm the workloads: ")
56+
fmt.Print("Press 'Enter' to confirm the workloads, or input others to skip: ")
5757

5858
if !scanner.Scan() {
5959
return nil, fmt.Errorf("input nothing")
6060
}
6161
confirmInput := scanner.Text()
6262

63-
if confirmInput != "confirm" {
63+
if confirmInput != "" {
64+
fmt.Println("You have skipped the workloads.")
6465
return nil, fmt.Errorf("confirm failed")
6566
}
6667

0 commit comments

Comments
 (0)