console

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package console provides terminal output utilities: spinners, colored text, and release summary formatting.

Index

Constants

This section is empty.

Variables

View Source
var (
	Reset  = "\033[0m"
	Bold   = "\033[1m"
	Dim    = "\033[2m"
	Red    = "\033[31m"
	Green  = "\033[32m"
	Yellow = "\033[33m"
	Blue   = "\033[34m"
	Cyan   = "\033[36m"
	White  = "\033[37m"
)

Functions

func BlueText

func BlueText(s string) string

func BoldText

func BoldText(s string) string

func CyanText

func CyanText(s string) string

func DimText

func DimText(s string) string

func GreenText

func GreenText(s string) string

func PrintSummary

func PrintSummary(s Summary)

func RedText

func RedText(s string) string

func Step

func Step(label string)

func YellowText

func YellowText(s string) string

Types

type Spinner

type Spinner struct {
	// contains filtered or unexported fields
}

func NewSpinner

func NewSpinner(message string) *Spinner

func (*Spinner) Start

func (s *Spinner) Start()

func (*Spinner) Stop

func (s *Spinner) Stop(success bool)

func (*Spinner) Update

func (s *Spinner) Update(message string)

type Summary

type Summary struct {
	Version       string
	Commits       int
	JiraTickets   int
	BumpLevel     string
	Tag           string
	Pushed        bool
	Published     bool
	PublishURL    string
	Confluence    bool
	ConfluenceURL string
	Changelog     bool
	ChangelogURL  string
	Trends        bool
	TrendsURL     string
	DepsCount     int
	Duration      time.Duration
}

Jump to

Keyboard shortcuts

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