# Functions
No description provided by the author
No description provided by the author
ColoredString takes a string and a colour attribute and returns a colored string with that attribute.
ColoredStringDirect used for aggregating a few color attributes rather than just sending a single one.
ColoredYamlString takes an YAML formatted string and returns a colored string with colors hardcoded as: keys: cyan Booleans: magenta Numbers: yellow Strings: green.
Decolorise strips a string of color.
No description provided by the author
No description provided by the author
FormatMap is for displaying a map.
FormatMapItem is for displaying items in a map.
GetColorAttribute gets the color attribute from the string.
GetGocuiAttribute gets the gocui color attribute from the string.
No description provided by the author
Loader dumps a string to be displayed as a loader.
MarshalIntoYaml gets any json-tagged data and marshal it into yaml saving original json structure.
Max returns the maximum of two integers.
MultiColoredString takes a string and an array of colour attributes and returns a colored string with those attributes.
NormalizeLinefeeds - Removes all Windows and Mac style line feeds.
Style used on menu items that open another menu.
RenderTable takes an array of string arrays and returns a table containing the values.
ResolvePlaceholderString populates a template with values.
No description provided by the author
SplitLines takes a multiline string and splits it on newlines currently we are also stripping \r's which may have adverse effects for windows users (but no issues have been raised yet).
WithPadding pads a string as much as you want.
WithShortSha returns a command but with a shorter SHA.