Discover Packages
github.com/arduino/arduino-cli
internal
arduino
builder
internal
runner
package
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Aug 11, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Result contains the output of a command execution
Runner is a helper to run commands in a queue, the commands are immediately exectuded
in a goroutine as they are enqueued. The runner can be stopped by calling Cancel.
New creates a new Runner with the given number of workers.
If workers is 0, the number of workers will be the number of available CPUs.
type Task struct {
Args []string `json:"args"`
LimitStderr int `json:"-"`
}
Task is a command to be executed
NewTask creates a new Task
NewTaskWithLimitedStderr creates a new Task with a hard-limit on the stderr output
Run executes the command and returns the result
Source Files
¶
Click to show internal directories.
Click to hide internal directories.