Commit 3c4e7bf9 authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

core/commands2: Added a simple 'message' output/formatter

parent 92e308f3
......@@ -114,3 +114,11 @@ func init() {
Root.Subcommands = rootSubcommands
u.SetLogLevel("core/commands", "info")
}
type MessageOutput struct {
Message string
}
func MessageFormatter(res cmds.Response) (string, error) {
return res.Value().(*MessageOutput).Message, nil
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment