bash

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TaskName is the name of the bash task
	TaskName string = "common/bash"
)

Variables

This section is empty.

Functions

func Make

func Make(t *v2alpha2.TaskSpec) (core.Task, error)

Make converts an bash task spec into an bash task.

Types

type Inputs

type Inputs struct {
	VersionInfo []core.VersionInfo `json:"versionInfo,omitempty" yaml:"versionInfo,omitempty"`
	Script      string             `json:"script" yaml:"script"`
}

Inputs contain the name and arguments of the command to be executed.

type Task

type Task struct {
	core.TaskMeta `json:",inline" yaml:",inline"`
	With          Inputs `json:"with" yaml:"with"`
}

Task encapsulates a command that can be executed.

func (*Task) Run

func (t *Task) Run(ctx context.Context) error

Run the command.

Jump to

Keyboard shortcuts

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