Documentation
¶
Index ¶
- func APILabel() string
- func Accent(text string) string
- func Banner(version string) string
- func Bold(text string) string
- func Bullet(label, value string) string
- func CfgLabel() string
- func DBLabel() string
- func Dashboard(cfg DashboardConfig) string
- func Dim(text string) string
- func Error(text string) string
- func GRPCLabel() string
- func HTTPMethod(method string) string
- func Highlight(source, language string) string
- func HighlightJSON(json string) string
- func HighlightSQL(sql string) string
- func Hint(text string) string
- func KeyValue(label, value string) string
- func LogLabel() string
- func MakeLabel() string
- func NumberedList(items []string) string
- func RunLabel() string
- func Step(num int, label string) string
- func StepDone(_ int, label string) string
- func Success(text string) string
- func Table(headers []string, rows [][]string) string
- func Warning(text string) string
- type DashboardConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dashboard ¶ added in v0.9.0
func Dashboard(cfg DashboardConfig) string
Dashboard renders the main dashboard view.
func HTTPMethod ¶ added in v0.9.0
func Highlight ¶ added in v0.25.0
Highlight applies syntax highlighting to source code. language should be a Chroma lexer name: "sql", "json", "yaml", "go", "toml", etc. Falls back to plain text if highlighting fails.
func HighlightJSON ¶ added in v0.25.0
HighlightJSON highlights a JSON string.
func HighlightSQL ¶ added in v0.25.0
HighlightSQL highlights a SQL statement.
func NumberedList ¶ added in v0.9.0
Types ¶
type DashboardConfig ¶ added in v0.19.0
type DashboardConfig struct {
ProjectDir string
HasDB bool
DBInfo string // e.g. "SQLite • apartment.db" or "Postgres • localhost:5432/mydb"
HasAPI bool
APIInfo string // e.g. "localhost:8080"
HasGRPC bool
GRPCInfo string // e.g. "localhost:50051"
HasLog bool
HasDocker bool
DockerInfo string // e.g. "3 services (docker-compose.yml)"
MissingDeps int
Version string
Env string // active environment name (empty = default)
}
DashboardConfig holds all parameters for rendering the dashboard.
Click to show internal directories.
Click to hide internal directories.