runner

package
v0.0.0-...-17bb7b9 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

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

func NewCmd

func NewCmd(command string, args ...string) *Cmd

func (*Cmd) AddArg

func (c *Cmd) AddArg(arg string, value ...string) *Cmd

func (*Cmd) Run

func (c *Cmd) Run(ctx context.Context, opts ...CmdOpt) error

type CmdOpt

type CmdOpt func(c *exec.Cmd)

func WithEnvironment

func WithEnvironment(envVals ...string) CmdOpt

func WithToolchainPath

func WithToolchainPath(ncsToolchainBase, zephyrBase string) CmdOpt

WithToolchainPath updates environment of command to inlcude necessary variables for building firmware.

func WithWorkDir

func WithWorkDir(workDir string) CmdOpt

Jump to

Keyboard shortcuts

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