zrepl/internal/client/status/status_raw.go
2024-10-18 19:21:17 +02:00

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
}