please

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BufferSize = 32

BufferSize represents the file copy buffer.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src string, dest string) error

CopyFile copies the src file to the destination.

func MustRepoRoot

func MustRepoRoot(plzOutDir string) string

MustRepoRoot returns the path to the root of the repository.

func ReplaceInDirectory

func ReplaceInDirectory(dir string, search string, replace string) error

ReplaceInDirectory recursively replaces strings in files within a directory.

func Sync

func Sync(src string, dest string, exceptionRegexes []string) error

Sync copies files from the src directory to the dest, deleting files which are no longer in the srcs and do not match an exception regex.

Types

type Opts

type Opts struct {
	PlzOutDir string `long:"plz_out_dir" default:"plz-out/" description:"The plz-out directory relative to the repo root."`
}

Opts represents the available options to this Please package as a whole.

Jump to

Keyboard shortcuts

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