cli

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetailKeyValue

func DetailKeyValue(key string, value string)

DetailKeyValue prints a styled detail key-value pair with indentation.

func Execute

func Execute()

Execute runs the CLI.

func Header(text string)

Header prints a styled command header.

func IsVerbose

func IsVerbose() bool

IsVerbose returns whether verbose output is enabled.

func KeyValue

func KeyValue(key string, value string)

KeyValue prints a styled key-value pair.

func PrintServiceURLs

func PrintServiceURLs(envName string, ports domain.PortMap, proxyDomain string, excludeServices ...string)

PrintServiceURLs prints a "Services" section with compiled URLs or localhost fallbacks. Optional excludeServices filters out infrastructure services (e.g., "redis") from the list.

func SectionHeader

func SectionHeader(text string)

SectionHeader prints a styled section header.

func StatusBadge

func StatusBadge(status string) string

StatusBadge returns a colored status string.

func Success

func Success(text string)

Success prints a styled success message. On GitHub Actions, this also emits a notice annotation.

Types

type CLIProgressReporter

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

CLIProgressReporter renders lifecycle events with colors, spinners, and timing.

func NewCLIProgressReporter

func NewCLIProgressReporter() *CLIProgressReporter

NewCLIProgressReporter creates a new CLI progress reporter.

func (*CLIProgressReporter) OnStep

func (r *CLIProgressReporter) OnStep(event domain.StepEvent)

func (*CLIProgressReporter) StderrWriter

func (r *CLIProgressReporter) StderrWriter() io.Writer

StderrWriter returns a writer that indents hook output for display below the step indicator.

Jump to

Keyboard shortcuts

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