package
1.21.0
Repository: https://github.com/aws-cloudformation/rain.git
Documentation: pkg.go.dev

# Packages

Package spinner contains functions for displaying progress updates with a spinning icon that shows the user that progress is being made.

# Functions

Ask prints the supplied prompt and then waits for user input which is returned as a string.
ClearLine removes all text from the current line and puts the cursor on the left.
ClearLines removes all text from the previous n lines (starting with the current line) and puts the cursor on the left.
Confirm asks the user for "y" or "n" and returns true if the response was "y".
CountLines returns the number of lines that would be taken up by the given string.
Errorf prints a red message to standard out.
Size returns the width and height of the console in characters.
Sprint wraps color.Sprint with logic to ignore colours if the console does not support colour.

# Variables

Blue returns the input as a string of blue-coloured text if the console supports colours.
Bold returns the input as a string of bold text if the console supports colours.
Cyan returns the input as a string of cyan-coloured text if the console supports colours.
Green returns the input as a string of green-coloured text if the console supports colours.
Grey returns the input as a string of grey-coloured text if the console supports colours.
IsTTY will be true if stdout is connected to a true terminal.
Magenta returns the input as a string of magenta-coloured text if the console supports colours.
NoColour should be false if you want output to be coloured.
Plain returns the input as a string of normal-coloured text if the console supports colours.
Red returns the input as a string of red-coloured text if the console supports colours.
White returns the input as a string of white-coloured text if the console supports colours.
Yellow returns the input as a string of yellow-coloured text if the console supports colours.