install

package
Version: v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureAddLinesWithComment

func EnsureAddLinesWithComment(file string, line string, comment string) (err error)

EnsureAddLinesWithComment ensures that the given line with the given comment is added to the file.

func EnsureRemoveComment

func EnsureRemoveComment(file string, comment string) (err error)

EnsureRemoveComment removes the line containing the given comment.

func Hooks

func Hooks(base string, baseCommand string) (err error)

Hooks installs pre-commit hooks which do remove local replace directives temporarily during a commit.

func Remove

func Remove(base string) (err error)

Remove removes the line containing defaultBashComment from the pre-commit and post-commit hooks residing under the base path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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