reporters

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FirstWorkingReporter

type FirstWorkingReporter struct {
	Reporters []Reporter
}

FirstWorkingReporter reports using the first possible reporter.

func (*FirstWorkingReporter) Report

func (s *FirstWorkingReporter) Report(approved, received string) bool

Report is called when the approved and received file do not match.

type MultiReporter

type MultiReporter struct {
	Reporters []Reporter
}

MultiReporter reports all reporters.

func (*MultiReporter) Report

func (s *MultiReporter) Report(approved, received string) bool

Report is called when the approved and received file do not match.

type Reporter

type Reporter interface {
	// Report is called when the approved and received file do not match.
	Report(approved, received string) bool
}

Reporter are called on failing approvals.

func NewAllFailingTestReporter

func NewAllFailingTestReporter() Reporter

NewAllFailingTestReporter copies move file command to your clipboard

func NewBeyondCompareReporter

func NewBeyondCompareReporter() Reporter

NewBeyondCompareReporter creates a new reporter for Beyond Compare 4.

func NewClipboardReporter

func NewClipboardReporter() Reporter

NewClipboardReporter copies move file command to your clipboard

func NewContinuousIntegrationReporter

func NewContinuousIntegrationReporter() Reporter

NewContinuousIntegrationReporter creates a new reporter for CI.

The reporter checks the environment variable CI for a value of true.

func NewDiffReporter

func NewDiffReporter() *Reporter

NewDiffReporter creates the default diff reporter.

func NewFileLauncherReporter

func NewFileLauncherReporter() Reporter

NewFileLauncherReporter launches registered application of the received file's type only.

func NewFileMergeReporter

func NewFileMergeReporter() Reporter

NewFileMergeReporter creates a new reporter for the Xcode filemerge diff tool.

func NewFirstWorkingReporter

func NewFirstWorkingReporter(reporters ...Reporter) Reporter

NewFirstWorkingReporter creates in the order reporters are passed in.

func NewFrontLoadedReporter

func NewFrontLoadedReporter() *Reporter

NewFrontLoadedReporter creates the default front loaded reporter.

func NewGoGlandReporter

func NewGoGlandReporter() Reporter

NewGoGlandReporter creates a new reporter for GoGland.

func NewIntelliJReporter

func NewIntelliJReporter() Reporter

NewIntelliJReporter creates a new reporter for IntelliJ.

func NewMultiReporter

func NewMultiReporter(reporters ...Reporter) Reporter

NewMultiReporter calls all reporters.

func NewPrintSupportedDiffProgramsReporter

func NewPrintSupportedDiffProgramsReporter() Reporter

NewPrintSupportedDiffProgramsReporter creates a new reporter that states what reporters are supported.

func NewQuietReporter

func NewQuietReporter() Reporter

NewQuietReporter creates a new reporter that does nothing.

func NewVSCodeReporter

func NewVSCodeReporter() Reporter

NewVSCodeReporter creates a new reporter for the Visual Studio Code diff tool.

Jump to

Keyboard shortcuts

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