build

package
v0.0.0-...-9da1c94 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: AGPL-3.0, AGPL-3.0-or-later Imports: 26 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvalShell

func EvalShell(statement string, env conf.Configuration) (string, error)

func Exe

func Exe(cmd string, dir string, env conf.Configuration, interactive bool) (string, error)

Exe executes a command and sends output and error streams to stdout and stderr

func ExeAsync

func ExeAsync(cmd string, dir string, env conf.Configuration, interactive bool) (string, error)

ExeAsync executes a command and sends output and error streams asynchronously

func ExeStream

func ExeStream(cmd string, dir string, env conf.Configuration, interactive bool) error

Types

type BuildHandler

type BuildHandler func(b *Builder, s *data.Seal, openP, runP, signP string) error

type Builder

type Builder struct {
	RepoName *core.PackageName
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(artHome string) *Builder

func (*Builder) Build

func (b *Builder) Build(from, fromPath, gitToken string, name *core.PackageName, profileName string, copy bool, interactive bool, target, openP, runP, signP string) error

Build the package from: the source to build, either http based git repository or local system git repository gitToken: if provided it is used to clone a remote repository that has authentication enabled name: the full name of the package to be built including the tag profileName: the name of the profile to be built. If empty then the default profile is built. If no default profile exists, the first profile is built. copy: indicates whether a copy should be made of the project files before packaging (only valid for from location in the file system) interactive: true if the console should survey for missing variables target: a specific target without relying on a build file (can be either relative or absolute)

func (*Builder) Execute

func (b *Builder) Execute(name *core.PackageName, function string, credentials string, interactive bool, path string, preserveFiles bool, env conf.Configuration, authorisedAuthors []string, ignoreExports bool) error

Execute an exported function in a package

func (*Builder) Run

func (b *Builder) Run(function string, path string, interactive bool, env conf.Configuration) error

Run execute the specified function

func (*Builder) SetBProc

func (b *Builder) SetBProc(p BuildHandler)

func (*Builder) SetRProc

func (b *Builder) SetRProc(p data.RunHandler)

func (*Builder) SetVProc

func (b *Builder) SetVProc(p data.VerifyHandler)

func (*Builder) WorkDirPackageFilename

func (b *Builder) WorkDirPackageFilename() string

WorkDirPackageFilename the fully qualified name of the zip file in the working directory

Jump to

Keyboard shortcuts

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