change build interface

This commit is contained in:
Asim Aslam
2020-10-18 09:51:11 +01:00
parent 48de9f25a8
commit 04b5fc19c2
4 changed files with 9 additions and 4 deletions

View File

@@ -4,13 +4,15 @@ package build
// Build is an interface for building packages
type Build interface {
// Package builds a package
Package(name string, src *Source) (*Package, error)
Package(*Source) (*Package, error)
// Remove removes the package
Remove(*Package) error
}
// Source is the source of a build
type Source struct {
// Name of the source
Name string
// Path to the source if local
Path string
// Language is the language of code