shell

package
v0.0.0-...-a79fb06 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

This package contains shell execution support used in rcc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Split

func Split(commandline string) ([]string, error)

func WithInterrupt

func WithInterrupt(task Wrapper)

Types

type Common

type Common interface {
	Debug(string, ...interface{}) error
	Trace(string, ...interface{}) error
	Timeline(string, ...interface{})
}

type Task

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

func New

func New(environment []string, directory string, task ...string) *Task

func (*Task) CaptureOutput

func (it *Task) CaptureOutput() (string, int, error)

func (*Task) Execute

func (it *Task) Execute(interactive bool) (int, error)

func (*Task) NoStderr

func (it *Task) NoStderr() *Task

func (*Task) Observed

func (it *Task) Observed(sink io.Writer, interactive bool) (int, error)

func (*Task) StderrOnly

func (it *Task) StderrOnly() *Task

func (*Task) Tee

func (it *Task) Tee(folder string, interactive bool) (int, error)

func (*Task) Tracked

func (it *Task) Tracked(sink io.Writer, interactive bool) (int, error)

func (*Task) Transparent

func (it *Task) Transparent() (int, error)

type Wrapper

type Wrapper func()

Jump to

Keyboard shortcuts

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