package
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: Sep 23, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Schema returns the config file JSON schema.
type Config struct {
Style string `yaml:"style"`
Timeout time.Duration `yaml:"timeout"`
Hooks []Hook `yaml:"hooks" jsonschema:"required"`
}
Config represents the `.foreplay.yml` schema.
Parses the config file and returns a struct.
type Hook struct {
ID string `yaml:"id" jsonschema:"required"`
Run string `yaml:"run" jsonschema:"required"`
}
Hook represents a task to be run on pre-commit.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.