execmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToContainer

func AddToContainer(ctr *dagger.Container, execCMDs []types.ContainerCommand) *dagger.Container

AddToContainer adds commands to a container. This function is useful when you want to inject commands into a container before running them.

Types

type DaggerCMD

type DaggerCMD []string

DaggerCMD is an alias for a slice of strings representing a command.

func GenerateCommand

func GenerateCommand(command string, args ...string) (*DaggerCMD, error)

GenerateCommand generates a command with the provided arguments. It ensures that arguments with spaces are handled correctly.

Jump to

Keyboard shortcuts

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