mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-12 01:07:35 +02:00
do create topic
This commit is contained in:
1 parent
d74348048a
commit
b3f94feede
6 files changed
+628
-421
No files matched your search
@@ -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
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user