precommit

package
v8.32.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Language         string
	Flavors          []string
	RepoName         string
	K8sSchemaVersion string
	// NodeLintTarget and NodeFormatTarget are the package.json lint/format-check
	// scripts the dev-only pre-push hooks run (Node only). Empty omits the
	// respective hook. They are repo-owned because every Node repo ships a
	// bespoke eslint/prettier toolchain under a different script name (backstage:
	// lint:all / prettier:check; happa: lint / validate-prettier), so they are
	// configured per repo rather than baked into the generator.
	NodeLintTarget   string
	NodeFormatTarget string
}

type PreCommit

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

func New

func New(config Config) (*PreCommit, error)

func (*PreCommit) CreateHelmReadmeInputs

func (p *PreCommit) CreateHelmReadmeInputs() []input.Input

func (*PreCommit) CreatePreCommitAction

func (p *PreCommit) CreatePreCommitAction() input.Input

func (*PreCommit) CreatePreCommitConfig

func (p *PreCommit) CreatePreCommitConfig() input.Input

func (*PreCommit) CreateSchemaYamlInputs

func (p *PreCommit) CreateSchemaYamlInputs() []input.Input

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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