script

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package script contains an execution creator that can download scripts using go-getter and then execute the local script. It uses the command.Executor to perform execution after script has been downloaded.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator struct {
	Options *def.Options
}

Creator that can handle script download and execution

func (*Creator) CanCreate

func (c *Creator) CanCreate(hook *config.Hook) bool

CanCreate checks if hook has a script reference to see if this execution should be run.

func (*Creator) Create

func (c *Creator) Create(hook *config.Hook) (def.Executor, error)

Create a new executor from hook that first downloads script then returns a command executor

Jump to

Keyboard shortcuts

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