commandexecutorgeneric

package
v0.414.0 Latest Latest
Warning

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

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

README

commandexecutorgeneric

Generic implementations useable by all commandexecutor implementations.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLiveOutputOnStdoutEnabled added in v0.393.0

func IsLiveOutputOnStdoutEnabled(ctx context.Context) bool

func WithLiveOutputOnStdout added in v0.393.0

func WithLiveOutputOnStdout(ctx context.Context) context.Context

func WithLiveOutputOnStdoutEnabled added in v0.393.0

func WithLiveOutputOnStdoutEnabled(ctx context.Context, enabled bool) context.Context

func WithLiveOutputOnStdoutIfVerbose added in v0.393.0

func WithLiveOutputOnStdoutIfVerbose(ctx context.Context) context.Context

Types

type CommandExecutorBase added in v0.393.0

type CommandExecutorBase struct {
	// contains filtered or unexported fields
}

func NewCommandExecutorBase added in v0.393.0

func NewCommandExecutorBase() (c *CommandExecutorBase)

func (*CommandExecutorBase) GetParentCommandExecutorForBaseClass added in v0.393.0

func (c *CommandExecutorBase) GetParentCommandExecutorForBaseClass() (parentCommandExecutorForBaseClass commandexecutorinterfaces.CommandExecutor, err error)

func (*CommandExecutorBase) IsRunningOnLocalhost added in v0.393.0

func (c *CommandExecutorBase) IsRunningOnLocalhost() (isRunningOnLocalhost bool, err error)

func (*CommandExecutorBase) RunCommandAndGetStdoutAsBytes added in v0.393.0

func (c *CommandExecutorBase) RunCommandAndGetStdoutAsBytes(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdout []byte, err error)

func (*CommandExecutorBase) RunCommandAndGetStdoutAsFloat64 added in v0.393.0

func (c *CommandExecutorBase) RunCommandAndGetStdoutAsFloat64(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdout float64, err error)

func (*CommandExecutorBase) RunCommandAndGetStdoutAsInt64 added in v0.393.0

func (c *CommandExecutorBase) RunCommandAndGetStdoutAsInt64(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdout int64, err error)

func (*CommandExecutorBase) RunCommandAndGetStdoutAsLines added in v0.393.0

func (c *CommandExecutorBase) RunCommandAndGetStdoutAsLines(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdoutLines []string, err error)

func (*CommandExecutorBase) RunCommandAndGetStdoutAsString added in v0.393.0

func (c *CommandExecutorBase) RunCommandAndGetStdoutAsString(ctx context.Context, options *parameteroptions.RunCommandOptions) (stdout string, err error)

func (*CommandExecutorBase) SetParentCommandExecutorForBaseClass added in v0.393.0

func (c *CommandExecutorBase) SetParentCommandExecutorForBaseClass(parentCommandExecutorForBaseClass commandexecutorinterfaces.CommandExecutor) (err error)

type ContextKeyLiveOutputOnStdout added in v0.393.0

type ContextKeyLiveOutputOnStdout struct{}

Jump to

Keyboard shortcuts

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