You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
473 B
28 lines
473 B
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
|
|
}
|