context

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDir added in v1.3.0

func IsDir(path string) (bool, error)

func IsFile added in v1.1.0

func IsFile(path string) (bool, error)

func PathForShim added in v1.2.0

func PathForShim(hook string) string

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func NewContext

func NewContext(path string) (*Context, error)

func (*Context) AllFiles added in v1.1.0

func (c *Context) AllFiles() ([]string, error)

func (*Context) ExecutablesForHook

func (c *Context) ExecutablesForHook(hook string) ([]*Executable, error)

func (*Context) FilesToBeCommitted

func (c *Context) FilesToBeCommitted() ([]string, error)

func (*Context) InstallShim added in v1.2.0

func (c *Context) InstallShim(hook string, prompt bool) error

func (*Context) ListHooks added in v1.2.0

func (c *Context) ListHooks() ([]string, error)

type Executable

type Executable struct {
	Name         string
	RelativePath string
	AbsolutePath string
}

Jump to

Keyboard shortcuts

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