commands

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuilderTypeConfig = []byte{} /* 2689 elements not displayed */

BuilderTypeConfig - do not edit

View Source
var ModuleTypeConfig = []byte{} /* 2310 elements not displayed */

ModuleTypeConfig - do not edit

Functions

func CmdConverter

func CmdConverter(mPath string, cmdList []string) [][]string

CmdConverter - path and commands to execute

func GetBuilder added in v0.2.3

func GetBuilder(module *mta.Module) (string, bool, map[string]string, []string, error)

GetBuilder - gets builder type of the module and indicator of custom builder

func GetModuleAndCommands

func GetModuleAndCommands(loc dir.IMtaParser, module string) (*mta.Module, []string, string, error)

GetModuleAndCommands - Get module from mta.yaml and commands (with resolved paths) configured for the module type

Types

type Builders

type Builders struct {
	Version  string    `yaml:"version"`
	Builders []builder `yaml:"builders"`
}

Builders list of commands to execute

type Command added in v0.2.3

type Command struct {
	Command string `yaml:"command"`
}

Command - specific command

type CommandList

type CommandList struct {
	Info    string
	Command []string
}

CommandList - list of command to execute

func CommandProvider

func CommandProvider(module mta.Module) (CommandList, string, error)

CommandProvider - Get build command's to execute noinspection GoExportedFuncWithUnexportedType

type ModuleTypes

type ModuleTypes struct {
	Version     string       `yaml:"version"`
	ModuleTypes []moduleType `yaml:"module-types"`
}

ModuleTypes - list of commands or builders related to specific module type

Jump to

Keyboard shortcuts

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