aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_mq_topic_list.go
blob: a069b0614c110900c2302cb24888b0d2a54c4c6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
}