Help us shape the future of Go! Take the 2026 Go Developer Survey

functions

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Templates = &promptui.SelectTemplates{
	Label:    "{{ . }}?",
	Active:   "> {{ .Name | cyan }}: {{ .Description | red }}",
	Inactive: "  {{ .Name | cyan }}: {{ .Description | red }}",
	Selected: "> {{ .Name | cyan }}: {{ .Description | red }}",
}
View Source
var ValidateCommitMessage = func(input string) error {
	if len(input) > 100 {
		return errors.New("commit message must have less than 100 characters")
	} else if len(input) < 6 {
		return errors.New("commit message must have more than 5 characters")
	}
	return nil
}
View Source
var ValidateScope = func(input string) error {
	if len(input) > 25 {
		return errors.New("commit scope must have less than 25 characters")
	} else if len(input) < 2 {
		return errors.New("commit scope must have more than 1 characters")
	}
	return nil
}

Functions

func RunPrompt

func RunPrompt() ([3]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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