commandexecutorbashoo

package
v0.400.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

README

commandexecutorexecoo package

Object oriented bash commandexectuor implementation.

For the non object orientated implemenations see commandexectuorbash.

Examples

For developers

To run the tests use:

bash -c "cd $(git rev-parse --show-toplevel) && go test -v ./pkg/commandexecutor/commandexecutorbashoo/..."

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BashService

type BashService struct {
	commandexecutorgeneric.CommandExecutorBase
}

func Bash

func Bash() (b *BashService)

Can be used to run commands in bash on localhost.

func NewBashService

func NewBashService() (b *BashService)

func (*BashService) GetDeepCopy

func (b *BashService) GetDeepCopy() (deepCopy commandexecutorinterfaces.CommandExecutor)

func (*BashService) GetHostDescription

func (b *BashService) GetHostDescription() (hostDescription string, err error)

func (*BashService) RunCommand

func (b *BashService) RunCommand(ctx context.Context, options *parameteroptions.RunCommandOptions) (commandOutput *commandoutput.CommandOutput, err error)

func (*BashService) RunOneLiner

func (b *BashService) RunOneLiner(ctx context.Context, oneLiner string) (output *commandoutput.CommandOutput, err error)

func (*BashService) RunOneLinerAndGetStdoutAsLines

func (b *BashService) RunOneLinerAndGetStdoutAsLines(ctx context.Context, oneLiner string) (stdoutLines []string, err error)

func (*BashService) RunOneLinerAndGetStdoutAsString

func (b *BashService) RunOneLinerAndGetStdoutAsString(ctx context.Context, oneLiner string) (stdout string, err error)

Jump to

Keyboard shortcuts

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