runner

package
v0.0.0-...-f92de01 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Copyright 2022 Practically.io All rights reserved

Use of this source is governed by a BSD-style licence that can be found in the LICENCE file or at https://www.practically.io/copyright

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType int
const (
	Start EventType = 1
	End             = 2
)

type RunResult

type RunResult struct {
	Error  error
	Output string
}

func Run

func Run(tasks []config.Task, handler func(RunnerEvent)) RunResult

Runs a task

type RunnerEvent

type RunnerEvent struct {
	Type   EventType
	Task   *config.Task
	Result *RunResult
}

Jump to

Keyboard shortcuts

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