Skip to content

Commit

Permalink
feat: for no selection for ResourceTypes in interactive mode (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
go-to-k authored Mar 7, 2023
1 parent c5ee563 commit a099d3d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,13 @@ func (a *App) doInteractiveMode() ([]string, string, bool) {
checkboxes = io.GetCheckboxes(label, opts)

if len(checkboxes) == 0 {
io.Logger.Warn().Msg("Select ResourceTypes!")
ok := io.GetYesNo("Do you want to finish?")
ok := io.GetYesNo("No selection?")
if ok {
return checkboxes, keyword, true
}

// The case for interruption(Ctrl + C)
ok = io.GetYesNo("Do you want to finish?")
if ok {
io.Logger.Info().Msg("Finished...")
return checkboxes, keyword, false
Expand Down

0 comments on commit a099d3d

Please sign in to comment.