do create topic

This commit is contained in:
chrislu committed 2023-09-24 22:00:43 -07:00
1 parent d74348048a
commit b3f94feede
6 files changed
+628 -421

No files matched your search

+3 -1
View File
@@ -2,6 +2,7 @@ package shell
import (
"context"
"encoding/json"
"flag"
"fmt"
"github.com/seaweedfs/seaweedfs/weed/pb"
@@ -58,7 +59,8 @@ func (c *commandMqTopicCreate) Do(args []string, commandEnv *CommandEnv, writer
if err != nil {
return err
}
fmt.Fprintf(writer, "response: %+v\n", resp)
output, _ := json.MarshalIndent(resp, "", " ")
fmt.Fprintf(writer, "response:\n%+v\n", string(output))
return nil
})