generator

package
v0.0.0-...-f64d98d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOptionFlags

func GetOptionFlags() []string

func IsValid

func IsValid(val string) bool

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(dir string, force bool) Generator

func (Generator) Generate

func (g Generator) Generate(options []string) error

type Option

type Option interface {
	// E.g. "Markdown Linter"
	Name() string
	// E.g. lint-markdown
	FlagName() string
	IsApplicable(repoDir string) bool
	IsImplemented(yamlData []string) bool
	GetYamlConfig(repoDir string) (*string, error)
	GetOutputFileName(repoDir string) string
}

func GetOptions

func GetOptions() []Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL