internal

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	common.Logging

	Path string
}

Executor is used to execute the subcommands

func NewExecutor

func NewExecutor(path string) Executor

NewExecutor returns a new Executor instance

The path to the project is changed to the absolute path is it exists

func (Executor) RunTool added in v0.6.0

func (executor Executor) RunTool(subcommand Subcommand, parseConfig bool) int

RunTool runs the given tool

parseConfig is used to indicate if the config file should be parsed or not

type Subcommand

type Subcommand interface {
	Execute(project common.Project, cfg config.Config) error // Execute executes the subcommand with the given project and config
	RequiresBuild() bool                                     // Return true if a build is required before running the command
}

Subcommand defines the interface a subcommand need to implement

Jump to

Keyboard shortcuts

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