v1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvsMap

type EnvsMap map[string]string

func (EnvsMap) Combine

func (e1 EnvsMap) Combine(e2 EnvsMap) EnvsMap

func (EnvsMap) Format

func (e EnvsMap) Format() []string

type HookSpec

type HookSpec struct {
	Command string   `json:"command"`
	Args    []string `json:"args"`
	Envs    EnvsMap  `json:"envs"`
	Workdir string   `json:"workdir"`
}

func (*HookSpec) Run

func (h *HookSpec) Run(envs EnvsMap, output bool) error

type HooksMap

type HooksMap map[string][]HookSpec

func (HooksMap) Run

func (h HooksMap) Run(name string, envs EnvsMap, output bool) error

type Spec

type Spec struct {
	Version string   `json:"version"`
	Hooks   HooksMap `json:"hooks"`
}

Jump to

Keyboard shortcuts

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