exec

package
v0.0.0-...-b463ae7 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd interface {
	Resize(cols, rows uint16) error
	Wait() (int, error)
	Release() error
}

func DoIfTryFailed

func DoIfTryFailed(
	stdin io.Reader,
	stdout, stderr io.Writer,
	command []string,
	tty bool,
	env map[string]string,
	tryOnly bool,
) (Cmd, error)

DoIfTryFailed will first try to handle command internally, if the command is not handled or failed to handle, execute it directly on host

Jump to

Keyboard shortcuts

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