Skip to content

Commit

Permalink
Add (*StatusCmd).Bytes() method (#3030)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Haines <andrew@haines.org.nz>
Co-authored-by: Monkey <golang@88.com>
  • Loading branch information
haines and monkey92t authored Jun 21, 2024
1 parent fc4c8bd commit 2d7382e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,10 @@ func (cmd *StatusCmd) Result() (string, error) {
return cmd.val, cmd.err
}

func (cmd *StatusCmd) Bytes() ([]byte, error) {
return util.StringToBytes(cmd.val), cmd.err
}

func (cmd *StatusCmd) String() string {
return cmdString(cmd, cmd.val)
}
Expand Down

0 comments on commit 2d7382e

Please sign in to comment.