validate

package
v0.0.0-...-3a64406 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cli.Command{
	Name:  "validate",
	Usage: "Prints errors if changelog has an invalid format.",
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:    markdownPathFlag,
			EnvVars: common.EnvFor(markdownPathFlag),
			Usage:   "Validate specified changelog file.",
			Value:   "CHANGELOG.md",
		},
		&cli.IntFlag{
			Name:    exitCodeFlag,
			EnvVars: common.EnvFor(exitCodeFlag),
			Usage:   "Exit code when errors are found",
			Value:   1,
		},
	},
	Action: Validate,
}

Cmd is the cli.Command object for the validate command.

Functions

func Validate

func Validate(cCtx *cli.Context) error

Validate is a command function which loads a changelog.yaml file, and prints to stderr all the errors found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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