Skip to content

Commit

Permalink
feat: default to single runner in prompt (#1735)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Dagelic <[email protected]>
  • Loading branch information
idagelic authored Jan 24, 2025
1 parent 5f02f46 commit 5a873d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/cmd/common/get_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ func GetRunnerFlow(apiClient *apiclient.APIClient, action string) (*runner.Runne
return nil, nil
}

if len(runners) == 1 {
return &runner.RunnerView{
Id: runners[0].Id,
Name: runners[0].Name,
}, nil
}

selectedRunner, err := runner.GetRunnerFromPrompt(runners, activeProfile.Name, action)
if err != nil {
if common.IsCtrlCAbort(err) {
Expand Down

0 comments on commit 5a873d9

Please sign in to comment.