shell

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitDirty

func GitDirty(targetDir string) (bool, error)

func GitIsRepo

func GitIsRepo(targetDir string) (bool, error)

func InstallGitHooks

func InstallGitHooks(sourceDir string, sourceFileNames []string, targetDir string) error

func SetLogger

func SetLogger(logger logrus.FieldLogger)

func Unzip

func Unzip(src string, dest string) (filenames []string, err error)

Types

type Output

type Output struct {
	StdOut bytes.Buffer
	StdErr bytes.Buffer
	Err    error
}

func GitAddAndCommit

func GitAddAndCommit(targetDir string, message string) Output

func GitClone

func GitClone(url string, target string) Output

func GitInit

func GitInit(targetDir string) Output

func GitPull

func GitPull(targetDir string) Output

func Run

func Run(name string, args ...string) Output

func (Output) FormatError

func (output Output) FormatError() error

func (Output) String

func (output Output) String() string

Jump to

Keyboard shortcuts

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