cmd

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package cmd contains commitlint cli

Index

Constants

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

Variables

This section is empty.

Functions

func ConfigCheck added in v0.5.0

func ConfigCheck(confPath string) error

ConfigCheck is the callback function for check/verify command

func ConfigCreate added in v0.5.0

func ConfigCreate(onlyEnabled bool) error

ConfigCreate is the callback function for create config command

func HookCreate added in v0.5.0

func HookCreate(confPath string, isReplace bool) error

HookCreate is the callback function for create hook command

func Init added in v0.4.0

func Init(confPath string, isGlobal, isReplace 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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