middleware

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 6 Imported by: 2

Documentation

Overview

Package middleware provides reusable task runner interceptors such as ReportStatus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferParallel added in v2.1.0

func BufferParallel(next goyek.Runner) goyek.Runner

BufferParallel is a middleware which buffers the output from parallel tasks to not have mixed output from parallel tasks execution.

func DryRun

func DryRun(goyek.Runner) goyek.Runner

DryRun is a middleware which omits running the actions.

func ReportLongRun

func ReportLongRun(d time.Duration) func(next goyek.Runner) goyek.Runner

ReportLongRun is a middleware which reports the task when it is long running.

func ReportStatus

func ReportStatus(next goyek.Runner) goyek.Runner

ReportStatus is a middleware which reports the task run status.

The format is based on the reports provided by the Go test runner.

func SilentNonFailed

func SilentNonFailed(next goyek.Runner) goyek.Runner

SilentNonFailed is a middleware which makes sure that only output from failed tasks is printed.

The behavior is based on the Go test runner when it is executed without the -v flag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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