# Functions
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.
Decolorise strips a string of color.
DifferenceInt returns the difference of two int arrays.
No description provided by the author
GetCurrentRepoName gets the repo's base name.
GetProjectRoot returns the path to the root of the project.
IncludesInt if the list contains the Int.
IncludesString if the list contains the string.
Loader dumps a string to be displayed as a loader.
Min returns the minimum of two integers.
used to keep a number n between 0 and max, allowing for wraparounds.
NextIndex returns the index of the element that comes after the given number.
NextIntInCycle returns the next int in a slice, returning to the first index if we've reached the end.
NormalizeLinefeeds - Removes all Windows and Mac style line feeds.
PrevIndex returns the index that comes before the given number, cycling if we reach the end.
PrevIntInCycle returns the prev int in a slice, returning to the first index if we've reached the end.
No description provided by the author
ResolvePlaceholderString populates a template with values.
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).
StringIndex returns the index of an element in a string array.
TrimTrailingNewline - Trims the trailing newline TODO: replace with `chomp` after refactor.
TruncateWithEllipsis returns a string, truncated to a certain length, with an ellipsis.
UnionInt returns the union of two int arrays.
No description provided by the author
No description provided by the author
WithPadding pads a string as much as you want.