Skip to content

bluefunda/banner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

banner

Go Reference License

ANSI block-art logos and terminal symbols for BlueFunda CLI tools. Provides a full stacked "BLUE / FUNDA" logo, a compact BF monogram, a single-line PS1-safe symbol mark, and a dedicated ABAPer pixel-font logo — with automatic color detection (NO_COLOR / non-TTY aware).

Install

go get github.com/bluefunda/banner@latest

Functions

Function Description
PrintMain() Full stacked "BLUE / FUNDA" block-art logo
PrintShort(product, version string) BF monogram with product name and version
Short(info1, info2, info3 string) string BF monogram with three custom info lines (pre-colored)
PrintSymbol() Single-line "▲ BlueFunda" mark for PS1 / log prefixes
Symbol() string Single-line mark as a string for embedding
PrintAbaper() Full 6-row ABAPer block-art logo
AbaperLines() [6]string 6 rows of the colored ABAPer logo as strings
AbaperShort(info1, info2, info3 string) string ABAPer logo with three info strings appended
AbaperCompact(info1, info2, info3 string) string Compact 3-line AB pixel-font mark with info strings
PrintAbaperCompact() Compact 3-line AB pixel-font mark
NoColor Set to true to disable ANSI codes (auto-detected)

Usage

import "github.com/bluefunda/banner/pkg/banner"

// Full stacked logo
banner.PrintMain()

// BF monogram + product info
banner.PrintShort("ABAPer", "v1.2.0")
banner.PrintShort("XPro", "v3.0.1")
banner.PrintShort("BlueRequests", "v2.1.0")
banner.PrintShort("BlueFunda AI", "v0.9.0")

// Single-line symbol (PS1, log prefix, tmux)
banner.PrintSymbol()
prefix := banner.Symbol()  // embed in strings

// Disable color (also auto-disabled on NO_COLOR env var or non-TTY stdout)
banner.NoColor = true

Run the demo

go run ./cmd/banner-demo/main.go

Brand colors

Element Hex ANSI
"Blue" letterform #1E64E7 \033[1;94m bold bright-blue
"Funda" letterform #1A305F \033[34m standard blue (navy)
Tagline \033[2;34m dim blue

License

Apache 2.0 — see LICENSE.

About

ANSI block-art logos and terminal symbols for BlueFunda CLI tools

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages