cli

package
v0.0.0-...-a5d91b3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DESCRIPTION_WRAP_LENGTH = 72
View Source
const MESSAGE_FILE_NAME = "gitmsg.txt"
View Source
const PROJECT_AUTHOR = "             by Zahin Zaman             "
View Source
const PROJECT_DESCRIPTION = "      Git Commit Message Organizer      "
View Source
const PROJECT_LOGO_ASCII_ART = "" +
	"                                        \n" +
	"                 .!??~                  \n" +
	"                ^JJJJJ?~.               \n" +
	"             .~: .!?JJJJJ!.             \n" +
	"           :7JJJ7.   :?JJJJ!.           \n" +
	"         :7JJJJJJ?    ^JJJJJJ7:         \n" +
	"       ^?JJJJJJJJJ?  :  ^??JJJJ7:       \n" +
	"     ~?JJJJJJJJJJJJ  ??^   .!JJJJ?^     \n" +
	"     ~?JJJJJJJJJJJJ  ?JJ.   ~JJJJ?^     \n" +
	"       ^?JJJJJJJJJJ  ?JJJ77?JJJ?^       \n" +
	"         :7JJJJJJ7.   7JJJJJJ7:         \n" +
	"           :7JJJJ7.  .7JJJJ7:           \n" +
	"             .!JJJJ77JJJJ!.             \n" +
	"               .!JJJJJJ!.               \n" +
	"                 .!??!.                 "
View Source
const PROJECT_TITLE_ASCII_ART = "" +
	"          _ _                           \n" +
	"     __ _(_) |_ _ __ ___  ___  __ _     \n" +
	"    / _` | | __| '_ ` _ \\/ __|/ _` |    \n" +
	"   | (_| | | |_| | | | | \\__ \\ (_| |    \n" +
	"    \\__, |_|\\__|_| |_| |_|___/\\__, |    \n" +
	"    |___/                     |___/     \n" +
	"                                        "
View Source
const SUMMARY_MAX_LENGTH = 50

Variables

View Source
var PRIMARY_COLOR_FLIPPED *color.Color = color.New(color.FgBlack, color.BgMagenta, color.Bold)

Functions

func GetBulletPoints

func GetBulletPoints(reader *bufio.Reader) string

func GetParagraph

func GetParagraph(reader *bufio.Reader) string

func GetSummary

func GetSummary(reader *bufio.Reader) string

func IsValidSummary

func IsValidSummary(summary string) bool

func PromptSelect

func PromptSelect(reader *bufio.Reader, options []string) int

func Run

func Run(reader *bufio.Reader)

Types

This section is empty.

Jump to

Keyboard shortcuts

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