shell

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MvnBin             string
	Tp1WithSleepBin    string
	Tp1FixedVersionBin string
	Tp1VersionFlagBin  string
	Tp2VersionFlagBin  string
	JavaBin            string
)

Functions

func BuildBinary added in v0.5.0

func BuildBinary(packagePath, name string, flags ...string) string

func Execute

func Execute(command string) *gocmd.Cmd

Execute executes given command in the current directory.

func ExecuteAll

func ExecuteAll(commands ...string)

ExecuteAll executes all passed commands in sequence, waiting for every single one to finish. before starting next one.

func ExecuteCommand

func ExecuteCommand(outputChan chan string, execute func() (string, error)) func()

func ExecuteInDir

func ExecuteInDir(dir, name string, args ...string) *gocmd.Cmd

ExecuteInDir executes given command in the defined directory Redirects streams to stdout/err.

func ExecuteInProjectRoot added in v0.0.9

func ExecuteInProjectRoot(command string) *gocmd.Cmd

ExecuteInProjectRoot runs given command in project root folder (e.g. handy for make).

func GetProjectDir

func GetProjectDir() string

func StubShellCommands

func StubShellCommands()

func WaitForSuccess added in v0.2.0

func WaitForSuccess(cmds ...*gocmd.Cmd)

WaitForSuccess checks if cmds ended just fine.

Types

This section is empty.

Jump to

Keyboard shortcuts

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