commandline

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAbsPath added in v1.8.8

func BuildAbsPath(workingDir string, targetPath *string) string

BuildAbsPath will ensure the targetPath is absolute, joining to workingDir if necessary.

func ConstructCommand added in v1.8.8

func ConstructCommand(workingDir string, targetPath *string, command string, getenv func(string) string) (*exec.Cmd, error)

ConstructCommand creates an exec.Cmd from path components, command as a single string and an environment var function

func ParseCommand

func ParseCommand(cmd string) (string, []string, error)

ParseCommand returns the executable path and arguments TODO: Clean this up

Types

This section is empty.

Jump to

Keyboard shortcuts

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