mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-30 20:35:23 +01:00
19 lines
231 B
Go
19 lines
231 B
Go
|
package status
|
||
|
|
||
|
import (
|
||
|
"bytes"
|
||
|
"io"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
func raw(c Client) error {
|
||
|
b, err := c.StatusRaw()
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
if _, err := io.Copy(os.Stdout, bytes.NewReader(b)); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
return nil
|
||
|
}
|