rsynccb

package
v1.22.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RsyncCmdBuilder

type RsyncCmdBuilder struct {
	// contains filtered or unexported fields
}

RsyncCmdBuilder defines the rsync command builder

func New

func New() RsyncCmdBuilder

New return a new RsyncCmd instance

func (*RsyncCmdBuilder) Build

func (r *RsyncCmdBuilder) Build(src, dest string) *exec.Cmd

Build builds the rsync command

func (*RsyncCmdBuilder) IsSet

func (r *RsyncCmdBuilder) IsSet(name string) bool

IsSet returns true if the flag is set

func (*RsyncCmdBuilder) Set

func (r *RsyncCmdBuilder) Set(name string, value any) error

Set sets the value of a flag

func (*RsyncCmdBuilder) Unset

func (r *RsyncCmdBuilder) Unset(name string)

Unset unsets the value of a flag

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL