lib

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Catchy = color.New(color.Bold, color.FgCyan).PrintfFunc()

Catchy : bold and cyan text

View Source
var Error = color.New(color.Bold, color.FgRed).PrintfFunc()

Error : bold and red text

View Source
var Notice = color.New(color.Bold, color.FgBlue).PrintfFunc()

Notice : bold and blue text

View Source
var Warning = color.New(color.FgYellow).PrintfFunc()

Warning : yellow text

Functions

func Clone

func Clone(url string, targetDir string, _refName string, _progress bool) (r *git.Repository)

Clone : Clones a given repository into targetDir

func Pull

func Pull(targetDir string, _refName string, _progress bool) (err error)

Pull : Pulls a given repository

func ReadFile

func ReadFile(path string) []byte

ReadFile : reads a file from a given path and returns its contents

Types

type DependencyConfig

type DependencyConfig struct {
	Version    string
	Repository string
	Artifacts  string
}

DependencyConfig : config for dependency

type ProductConfig

type ProductConfig struct {
	Name         string
	Version      string
	Description  string
	Dependencies map[string]*DependencyConfig
}

ProductConfig : config for product

func GetProductConfig

func GetProductConfig(configFile string) ProductConfig

GetProductConfig : receives a bytestring and returns a ProductConfig

Jump to

Keyboard shortcuts

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