exec

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(name string, arg ...string) *exec.Cmd

Command passes through to exec.Command for running generic commands.

func ComposeCommand

func ComposeCommand(context ComposeCommandContext, command string, arg ...string) *exec.Cmd

ComposeCommand gets a docker compose command to run.

func RunCommandCollect

func RunCommandCollect(cmd *exec.Cmd) (stdout bytes.Buffer, stderr bytes.Buffer, err error)

RunCommand runs a command, collecting output and errors.

func RunTTYCommand

func RunTTYCommand(cmd *exec.Cmd)

RunTTYCommand runs a command in an interactive shell.

Types

type ComposeCommandContext

type ComposeCommandContext struct {
	ProjectDirectory string
	ProjectName      string
}

ComposeCommandContext ...

Jump to

Keyboard shortcuts

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