cmd

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: Apache-2.0 Imports: 40 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootArgs = &rootCmdArgs{}

Functions

func CallPlugin added in v0.11.0

func CallPlugin(logger hclog.Logger, plugin interface{}) []*protos2.BuildArgsGroup

func Engine

func Engine(cmd *cobra.Command, _ []string) error

func Execute

func Execute() error

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetBuild

func GetBuild() container.BuildGroups

func Init

func Init(arg *container.Build) *container.Build

func InitBuildSteps added in v0.2.1

func InitBuildSteps(_buildSteps *build.BuildSteps) *build.BuildSteps

InitBuildSteps can be used to set the build steps for the build command This is useful for registering a new build step as part of a extension of the engine-ci with to support new build types for different languages or to customize the build steps for a specific project.

func LoadCache

func LoadCache() error

func Pre

func RunCommand added in v0.3.1

func RunCommand(cmd *cobra.Command, args []string) error

func RunGithub

func RunGithub(cmd *cobra.Command, args []string)

func RunGithubAction

func RunGithubAction() error

func RunGithubActionCmd

func RunGithubActionCmd(_ *cobra.Command, args []string) error

func RunMage

func RunMage(cmd *cobra.Command, args []string)

func SaveCache

func SaveCache() error

func SetVersionInfo added in v0.3.0

func SetVersionInfo(version, commit, date, repo string) string

func Start added in v0.11.0

func Start() (func(), network.Address)

Types

type Command

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

func NewCommand

func NewCommand(_buildArgs container.Build) *Command

func (*Command) AddTarget

func (c *Command) AddTarget(name string, fnc func() error)

func (*Command) Pre added in v0.11.0

func (c *Command) Pre() (*container.Build, *build.BuildSteps)

func (*Command) Run

func (c *Command) Run(addr network.Address, target string, arg *container.Build)

func (*Command) RunBuild added in v0.11.0

func (c *Command) RunBuild()

type LeaderElection added in v0.11.0

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

func (*LeaderElection) Leader added in v0.11.0

func (l *LeaderElection) Leader(id string, fnc func() error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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