command

package
v0.2.0-rc.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommandVersion

func GetCommandVersion(executable string) (string, error)

GetCommandVersion returns the version of a executable

func GetPlatformSpecificCommand

func GetPlatformSpecificCommand(platform string, file string, args string, workDir string) (*exec.Cmd, error)

GetPlatformSpecificCommand returns a platform-specific exec.Cmd

func RunCommand

func RunCommand(command string, env map[string]string, workDir string)

RunCommand runs a command and forwards all output to console, but will panic/exit if the command fails

func RunOptionalCommand

func RunOptionalCommand(command string, env map[string]string, workDir string) error

RunOptionalCommand runs a command and forwards all output to console

func RunSystemCommand added in v0.2.0

func RunSystemCommand(file string, args string, env map[string]string, workDir string) (string, error)

RunSystemCommand runs a command and stores the response in a string

func RunSystemCommandPassThru

func RunSystemCommandPassThru(file string, args string, env map[string]string, workDir string) error

RunSystemCommandPassThru runs a command and forwards all output to current console session

Types

This section is empty.

Jump to

Keyboard shortcuts

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