internal

package
v0.0.0-...-a29b1dd Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package internal contains internal code used by multiple packages within pre-commit-go.

It contains a reimplementation of os.Remove() that works even with files with the read-only bit on Windows.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capture

func Capture(wd string, env []string, args ...string) (string, int, error)

Capture runs an executable from a directory returns the output, exit code and error if appropriate. It sets the environment variables specified.

func Remove

func Remove(name string) error

Remove calls back os.Remove() on non-Windows.

func RemoveAll

func RemoveAll(path string) error

RemoveAll is a reimplementation of os.RemoveAll() that calls our private version of Remove().

Types

This section is empty.

Jump to

Keyboard shortcuts

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