mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add an empty placeholder for mq.topic.list
This commit is contained in:
parent
aa4a22ad47
commit
a3fae7cd16
28
weed/shell/command_mq_topic_list.go
Normal file
28
weed/shell/command_mq_topic_list.go
Normal file
|
@ -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
|
||||||
|
}
|
Loading…
Reference in a new issue