repo

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CopyOpts

type CopyOpts struct {
	FromRepo   *git.Repo
	ToRepo     *git.Repo
	RenderFunc func(in io.Reader, out io.Writer) error
	Ignore     *gi.GitIgnore
}

func (*CopyOpts) CopyDir

func (cfg *CopyOpts) CopyDir(src, dst string) (err error)

CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must *not* exist. Symlinks are ignored and skipped.

func (*CopyOpts) CopyFile

func (cfg *CopyOpts) CopyFile(src, dst string, doNotRender bool) (err error)

func (*CopyOpts) WriteBytes

func (cfg *CopyOpts) WriteBytes(src []byte, dstfn string) (err error)

Jump to

Keyboard shortcuts

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