shells

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanEnvironmentStateFile

func CleanEnvironmentStateFile() error

func ResetStoredEnvironmentVariables

func ResetStoredEnvironmentVariables() error

Resets the stored environment variables file.

Types

type BashCommandConfiguration

type BashCommandConfiguration struct {
	EnvironmentVariables map[string]string
	InheritEnvironment   bool
	InteractiveCommand   bool
	WriteToHistory       bool
}

type CommandOutput

type CommandOutput struct {
	StdOut string
	StdErr string
}

func ExecuteBashCommand

func ExecuteBashCommand(command string, config BashCommandConfiguration) (CommandOutput, error)

Executes a bash command and returns the output or error.

Jump to

Keyboard shortcuts

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