package
Version:
v0.0.0-...-f5fd88d
Opens a new window with list of versions in this module.
Published: Sep 22, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package bash provides bash command helpers
Bash is api for bash process
New creates a new bash runner and initializes it
Close closes current bash process and all the resources used by it
Dir returns the directory where the runner instance is located
Init initializes all resources for the bash runner.
Must be called before any call to Run or Close ¶
You are advised to use bash.New instead, which calls this function automatically.
type Option func(bash *Bash)
Option is an option for the Runner
WithDir sets the directory where the bash runner will be located
WithEnv sets env variables for the bash runner
Source Files
¶
Click to show internal directories.
Click to hide internal directories.