cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package cmd contains commitlint cli

Index

Constants

View Source
const (
	// ErrExitCode represent error exit code
	ErrExitCode = 1

	// HookDir represent default hook directory
	HookDir = ".commitlint/hooks"
)

Variables

This section is empty.

Functions

func CreateConfig added in v0.4.0

func CreateConfig(onlyEnabled bool) error

CreateConfig is the callback function for create config command

func CreateHook added in v0.4.0

func CreateHook() (retErr error)

CreateHook is the callback function for create hook command

func Init added in v0.4.0

func Init(isGlobal bool) error

Init is the callback function for init command

func Lint added in v0.4.0

func Lint(confPath, msgPath string) error

Lint is the callback function for lint command

func New

func New() *cli.App

New returns commitlint cli.App

func NewWith added in v0.4.0

func NewWith(versionNo, commitHash, builtTime string) *cli.App

NewWith returns commitlint cli.App with version info

func VerifyConfig added in v0.4.0

func VerifyConfig(confFlag string) error

VerifyConfig is the callback function for verify command

Types

This section is empty.

Jump to

Keyboard shortcuts

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