command

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package command contains helper methods for cmd executors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

type Ctx struct {
	context.Context
	// contains filtered or unexported fields
}

func NewCtx

func NewCtx(ctx context.Context, taskEnviron map[string]string, logger *zap.Logger) Ctx

NewCtx initializes a new Ctx with the provided environment and logger.

func (Ctx) BuildExecuteParams

func (ctx Ctx) BuildExecuteParams(command string) (string, []string, []string)

BuildExecuteParams prepares shell, args and environment for command execution.

Jump to

Keyboard shortcuts

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