shell

package
Version: v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package shell offers a shell to execute code in.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shell

type Shell interface {
	// Err returns the last error.
	Err() error

	// RunScript runs the given scrip in a shell.
	RunScript(string)
}

Shell contains methods to run Shell scripts.

If an error occured then any later runs do not get executed.

func New

func New() Shell

New creates a new /bin/sh shell.

Source Files

Jump to

Keyboard shortcuts

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