shell

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Identifier string = "shell"
)

Variables

View Source
var CreateFakeShell = func() *fakeShell {
	return &fakeShell{}
}

Functions

This section is empty.

Types

type Shell

type Shell interface {
	ExecuteScriptFile(relativeScriptPath string, args ...string) error
	ExecuteScriptFileWithOutputToFile(
		relativeScriptPath string,
		outputFilePath string,
		args ...string) error

	ExecuteScriptFileSilentlyWithOutputToFile(
		relativeScriptPath string,
		outputFilePath string,
		args ...string) error

	Execute(script string) error
	ExecuteWithOutputToFile(script string, outputFilePath string) error
	ExecuteSilentlyWithOutputToFile(script string, outputFilePath string) error

	ExecuteReturnOutput(script string) (string, error)
	ExecuteSilently(script string) error

	// ExecuteTTY executes a script as a TeleTYpewrite, this allow us to run interactive commands
	// by creating a unix pseudo-terminals.
	// Used for cases of starting applications programmatically such as vi, sublime etc..
	ExecuteTTY(script string) error
	ExecuteInBackground(script string) error
	ClearScreen() error
}

func New

func New(ctx common.Context) Shell

type ShellType

type ShellType string

Jump to

Keyboard shortcuts

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