builder

package
v0.0.0-...-51a9299 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(jsonFilePath string)

Types

type BuildConfig

type BuildConfig struct {
	Config   Config    `json:"config"`
	Projects []Project `json:"projects"`
}

type Builder

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

func NewBuilder

func NewBuilder(filePath string) *Builder

func (*Builder) AddProject

func (builder *Builder) AddProject(project *Project) error

TODO: add unit test

func (*Builder) Build

func (builder *Builder) Build(name string, releaseName string) error

TODO: add unit test

func (*Builder) Db

func (builder *Builder) Db(name string, ternArgs string) error

func (*Builder) ListProjects

func (build *Builder) ListProjects() error

TODO: fix assumed column widths

func (*Builder) RemoveProject

func (builder *Builder) RemoveProject(projectName string) error

TODO: add unit test

func (*Builder) Test

func (builder *Builder) Test(name string) error

func (*Builder) UpdateConfigFile

func (builder *Builder) UpdateConfigFile(data []byte) error

type Config

type Config struct {
	Output string `json:"output"`
}

type Project

type Project struct {
	Name     string    `json:"name"`
	Language string    `json:"lang"`
	Type     string    `json:"type"`
	Path     string    `json:"path"`
	Root     string    `json:"root"`
	Releases []Release `json:"releases"`
}

type Release

type Release struct {
	Name    string   `json:"name"`
	Flags   []string `json:"flags"`
	Default bool     `json:"default"`
}

Jump to

Keyboard shortcuts

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