Skip to content

Commit 282de75

Browse files
committed
update confirm method to use util library
1 parent 646b7a1 commit 282de75

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/cli/cli.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"github.com/segmentio/topicctl/pkg/config"
2222
"github.com/segmentio/topicctl/pkg/groups"
2323
"github.com/segmentio/topicctl/pkg/messages"
24+
"github.com/segmentio/topicctl/pkg/util"
2425
log "github.com/sirupsen/logrus"
2526
)
2627

@@ -616,12 +617,12 @@ func (c *CLIRunner) DeleteTopic(ctx context.Context, topic string) error {
616617
_, err := c.adminClient.GetTopic(ctx, topic, false)
617618
if err != nil {
618619
c.stopSpinner()
619-
return fmt.Errorf("Error fetching topic info: %+v", err)
620+
return fmt.Errorf("error fetching topic info: %+v", err)
620621
}
621622
c.stopSpinner()
622623
c.printer("Topic %s exists in the cluster!", topic)
623624

624-
confirm, err := apply.Confirm(fmt.Sprintf("Delete topic \"%s\"", topic), false)
625+
confirm, err := util.Confirm(fmt.Sprintf("Delete topic \"%s\"", topic), false)
625626
if err != nil {
626627
return err
627628
}

0 commit comments

Comments
 (0)