Documentation ¶
Index ¶
- Variables
- func CreateDefault() error
- func PopulateFromForm(template Template) (string, error)
- func PopulateTemplate(template Template, variables map[string]string) (string, error)
- func RenderList(title string, items []string) string
- func Write(items ...string)
- func WriteNoMargin(items ...string)
- type Template
- type Variable
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Shell = lipgloss.NewStyle(). MarginLeft(marginLeft). Render ShellMargin = lipgloss.NewStyle(). MarginTop(marginTop). MarginBottom(marginBottom). MarginLeft(marginLeft). Render List = lipgloss.NewStyle(). BorderForeground(subtle) Header = lipgloss.NewStyle(). Foreground(special). Bold(true). BorderStyle(lipgloss.NormalBorder()). BorderBottom(true). BorderForeground(subtle). Render ListItem = lipgloss.NewStyle().PaddingLeft(2).Render ListItemTick = func(s string) string { return tick + lipgloss.NewStyle(). Render(s) } TextHighlight = lipgloss.NewStyle(). Foreground(highlight). Render )
Functions ¶
func PopulateFromForm ¶
func PopulateTemplate ¶
PopulateTemplate replaces variables in a template with values
func RenderList ¶
RenderList renders a list of strings
func WriteNoMargin ¶
func WriteNoMargin(items ...string)
WriteNoMargin prints a list of strings to the terminal
Types ¶
Click to show internal directories.
Click to hide internal directories.