Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ColorCyan = color.New(color.FgHiCyan, color.Bold) ColorPurple = color.New(color.FgHiMagenta, color.Bold) ColorOrange = color.New(color.FgYellow, color.Bold) // closest to #FFAA7F ColorGreen = color.New(color.FgHiGreen, color.Bold) ColorRed = color.New(color.FgHiRed, color.Bold) ColorBold = color.New(color.Bold) ColorWhite = color.New(color.FgHiWhite, color.Bold) ColorDim = color.New(color.Faint) )
Functions ¶
func GistInfo ¶
func GistInfo(desc, id, url string)
GistInfo pretty-prints gist metadata after create/update.
func ListGists ¶ added in v1.0.1
ListGists is the main entry point for rendering the gist list. It auto-selects between table mode and compact list mode based on the current terminal width vs cfg.MinTableWidth.
Types ¶
type Config ¶ added in v1.0.1
type Config struct {
MinTableWidth int // terminal columns below which list mode is used
DescRatio int // % of flexible width for Description column (1–99)
}
DisplayConfig is a subset of config.DisplayConfig re-declared here to avoid an import cycle. The caller (cmd/list.go) maps config.DisplayConfig → this.
Click to show internal directories.
Click to hide internal directories.