diff --git a/core/commands2/root.go b/core/commands2/root.go index 45c51dcca..df8fd366c 100644 --- a/core/commands2/root.go +++ b/core/commands2/root.go @@ -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 +}