packer-cn/vendor/github.com/approvals/go-approval-tests/reporters/intellij.go

16 lines
406 B
Go
Raw Normal View History

2016-07-11 18:08:28 -04:00
package reporters
type intellij struct{}
// NewIntelliJReporter creates a new reporter for IntelliJ.
func NewIntelliJReporter() Reporter {
return &intellij{}
}
func (s *intellij) Report(approved, received string) bool {
xs := []string{"diff", received, approved}
programName := "C:/Program Files (x86)/JetBrains/IntelliJ IDEA 2016/bin/idea.exe"
return launchProgram(programName, approved, xs...)
}