Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
// FileFinder interface to search for the files
// in the SearchPath
Finder finder.FileFinder
// Reporter interface for outputting the results of the
// the CLI run
Reporter reporter.Reporter
}
func (CLI) Run ¶
The Run method performs the following actions: - Finds the calls the Find method from the Finder interface to return a list of files - Reads each file that was found - Calls the Validate method from the Validator interface to validate the file - Outputs the results using the Reporter
type CLIOption ¶ added in v1.4.0
type CLIOption func(*CLI)
Implement the go options pattern to be able to set options to the CLI struct using functional programming
func WithFinder ¶ added in v1.4.0
func WithFinder(finder finder.FileFinder) CLIOption
Set the CLI Finder
func WithReporter ¶ added in v1.4.0
Set the reporter type
Click to show internal directories.
Click to hide internal directories.