pkgcfg

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

View Source
const (
	HookPreBuild  = "pre-build"
	HookPostBuild = "post-build"
)

Variables

This section is empty.

Functions

func GetCurrentVersion

func GetCurrentVersion(data []byte) (string, error)

Types

type CarbonConfig

type CarbonConfig struct {
	Cwd  string
	Data latest.CarbonConfig
}

func ParseConfig

func ParseConfig(dir string, data []byte, argName, argVPref, argVSuf string) (*CarbonConfig, error)

func (*CarbonConfig) HookDefined

func (self *CarbonConfig) HookDefined(hookType string) bool

func (*CarbonConfig) RunHook

func (self *CarbonConfig) RunHook(hookType string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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