Skip to content

Commit

Permalink
TEMP: rpk logs
Browse files Browse the repository at this point in the history
  • Loading branch information
r-vasquez committed Jun 15, 2022
1 parent 8934dcd commit 3cf5944
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/go/rpk/pkg/cli/cmd/topic/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/spf13/cobra"
"github.com/twmb/franz-go/pkg/kerr"
"github.com/twmb/franz-go/pkg/kmsg"
"gopkg.in/yaml.v3"
)

func NewCreateCommand(fs afero.Fs) *cobra.Command {
Expand Down Expand Up @@ -53,7 +54,9 @@ the cleanup.policy=compact config option set.
p := config.ParamsFromCommand(cmd)
cfg, err := p.Load(fs)
out.MaybeDie(err, "unable to load config: %v", err)

fmt.Println("Config in Topic Create: ")
marshal, _ := yaml.Marshal(cfg)
fmt.Println(string(marshal))
cl, err := kafka.NewFranzClient(fs, p, cfg)
out.MaybeDie(err, "unable to initialize kafka client: %v", err)
defer cl.Close()
Expand Down

0 comments on commit 3cf5944

Please sign in to comment.