func (b *Build) Run(change scm.Change, options *Options) error {
	return nil
}
Run implements Check.
package checks
import (
	"bytes"
	"errors"
	"fmt"
	"log"
	"os"
	"sort"
	"strings"
	"sync"
	"time"
	"github.com/maruel/pre-commit-go/internal"
	"github.com/maruel/pre-commit-go/scm"
)
type CheckPrerequisite struct {
	HelpCommand []string `yaml:"help_command"`
	ExpectedExitCode int `yaml:"expected_exit_code"`
	URL string
}
func (c *CheckPrerequisite) IsPresent() bool {
	_, exitCode, _ := internal.Capture(cwd, nil, c.HelpCommand...)
	return exitCode == c.ExpectedExitCode
}
type Check interface {
	GetDescription() string
	GetName() string
	GetPrerequisites() []CheckPrerequisite
	Run(change scm.Change, options *Options) error
}
type Build struct {
	BuildAll  bool     `yaml:"build_all"`
	ExtraArgs []string `yaml:"extra_args"`
}
func (b *Build) GetDescription() string {
	return "(obsolete)"
}
func (b *Build) GetName() string {
	return "build"
}
func (b *Build) GetPrerequisites() []CheckPrerequisite {
	return nil
}