Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse makes {{template "credential" .}} available to text, which renders an internal/auth.CredentialStatus.
func Render ¶
Render is for a full-screen prompt. It uses glamour's dark style unless GLAMOUR_STYLE names another, and wraps at maxWidth at most.
func RenderInline ¶
RenderInline takes only a built-in glamour style from GLAMOUR_STYLE, unlike Render: it has to change the style's margin, so a GLAMOUR_STYLE that names a style file gets the dark style.
func Write ¶
Write renders the Markdown where color.Output allows any styling, and writes it as it is otherwise. It wraps at the narrowest width that takes no more lines than the terminal's does, because glamour stretches a table to the width it wraps at, and a short table reads badly across a wide terminal. Forced color without a terminal takes maxWidth for the terminal's width.
Types ¶
This section is empty.