(opts *Options)
| 22 | } |
| 23 | |
| 24 | func newRsyncTool(opts *Options) (*rsyncTool, error) { |
| 25 | toolPath, err := exec.LookPath("rsync") |
| 26 | if err != nil { |
| 27 | return nil, fmt.Errorf("rsync not found on host: %w", err) |
| 28 | } |
| 29 | return &rsyncTool{toolPath: toolPath, Options: opts}, nil |
| 30 | } |
| 31 | |
| 32 | func (t *rsyncTool) Name() string { |
| 33 | return t.toolPath |
no outgoing calls