command

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommand

func BuildCommand(shellCmd string) *exec.Cmd

func BuildCommandContext

func BuildCommandContext(ctx context.Context, shellCmd string) *exec.Cmd

func BuildCommandShellArg added in v0.29.1

func BuildCommandShellArg(shell ShellConfig, cmd string) *exec.Cmd

func BuildCommandShellArgContext added in v0.29.1

func BuildCommandShellArgContext(ctx context.Context, shell ShellConfig, cmd string) *exec.Cmd

func ValidateShellConfig added in v0.29.1

func ValidateShellConfig(shell ShellConfig)

Types

type ShellConfig added in v0.29.1

type ShellConfig struct {
	ShellCommand  string `yaml:"shell_command"`
	ShellArgument string `yaml:"shell_argument"`
}

func DefaultShellConfig added in v0.29.1

func DefaultShellConfig() *ShellConfig

Jump to

Keyboard shortcuts

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