aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_mq_topic_list.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-07-16 12:07:31 -0700
committerchrislu <chris.lu@gmail.com>2022-07-28 23:24:38 -0700
commita3fae7cd163bc97ddea5f5dd79e2aa0491f86302 (patch)
tree02bf23b76cf92538db3ef2183519786ed1282559 /weed/shell/command_mq_topic_list.go
parentaa4a22ad477ac890d427f19c4a4d0cc0d9864eeb (diff)
downloadseaweedfs-a3fae7cd163bc97ddea5f5dd79e2aa0491f86302.tar.xz
seaweedfs-a3fae7cd163bc97ddea5f5dd79e2aa0491f86302.zip
add an empty placeholder for mq.topic.list
Diffstat (limited to 'weed/shell/command_mq_topic_list.go')
-rw-r--r--weed/shell/command_mq_topic_list.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/weed/shell/command_mq_topic_list.go b/weed/shell/command_mq_topic_list.go
new file mode 100644
index 000000000..a069b0614
--- /dev/null
+++ b/weed/shell/command_mq_topic_list.go
@@ -0,0 +1,28 @@
+package shell
+
+import (
+ "fmt"
+ "io"
+)
+
+func init() {
+ Commands = append(Commands, &commandMqTopicList{})
+}
+
+type commandMqTopicList struct {
+}
+
+func (c *commandMqTopicList) Name() string {
+ return "mq.topic.list"
+}
+
+func (c *commandMqTopicList) Help() string {
+ return `print out all topics`
+}
+
+func (c *commandMqTopicList) Do(args []string, commandEnv *CommandEnv, writer io.Writer) (err error) {
+
+ fmt.Fprintf(writer, "%s\n", commandEnv.option.Directory)
+
+ return nil
+}