Documentation ¶
Index ¶
- type FirstWorkingReporter
- type MultiReporter
- type Reporter
- func NewAllFailingTestReporter() Reporter
- func NewBeyondCompareReporter() Reporter
- func NewClipboardReporter() Reporter
- func NewContinuousIntegrationReporter() Reporter
- func NewDiffReporter() *Reporter
- func NewFileLauncherReporter() Reporter
- func NewFileMergeReporter() Reporter
- func NewFirstWorkingReporter(reporters ...Reporter) Reporter
- func NewFrontLoadedReporter() *Reporter
- func NewGoGlandReporter() Reporter
- func NewIntelliJReporter() Reporter
- func NewMultiReporter(reporters ...Reporter) Reporter
- func NewPrintSupportedDiffProgramsReporter() Reporter
- func NewQuietReporter() Reporter
- func NewVSCodeReporter() Reporter
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 ¶
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 ¶
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.