Skip to content

Commit 2d7382e

Browse files
hainesmonkey92t
andauthored
Add (*StatusCmd).Bytes() method (#3030)
Signed-off-by: Andrew Haines <[email protected]> Co-authored-by: Monkey <[email protected]>
1 parent fc4c8bd commit 2d7382e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

command.go

+4
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,10 @@ func (cmd *StatusCmd) Result() (string, error) {
573573
return cmd.val, cmd.err
574574
}
575575

576+
func (cmd *StatusCmd) Bytes() ([]byte, error) {
577+
return util.StringToBytes(cmd.val), cmd.err
578+
}
579+
576580
func (cmd *StatusCmd) String() string {
577581
return cmdString(cmd, cmd.val)
578582
}

0 commit comments

Comments
 (0)