Skip to content

Commit

Permalink
pass in stdio to dupe profile prompt (#696)
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerjrr authored Jul 10, 2024
1 parent 36b51d7 commit 86ba260
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/granted/registry/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"os"

"github.com/AlecAivazis/survey/v2"
"github.com/common-fate/clio"
Expand Down Expand Up @@ -73,7 +74,8 @@ func SyncProfileRegistries(ctx context.Context, interactive bool) error {

in := survey.Select{Message: "Please select which option would you like to choose to resolve: ", Options: options}
var selected string
err = testable.AskOne(&in, &selected)
withStdio := survey.WithStdio(os.Stdin, os.Stderr, os.Stderr)
err = testable.AskOne(&in, &selected, withStdio)
if err != nil {
return err
}
Expand Down

0 comments on commit 86ba260

Please sign in to comment.