# Functions
AskYesNo is similar to Input, but the line read is coerced to one of true (yes and its variants) or false (no, its variants and anything else) on success.
Break simply writes a newline to the writer.
Description formats the output of a description item.
Error is a wrapper for fmt.Fprintf with a bold red "ERROR: " prefix.
Indent writes the help text to the writer using WrapIndent with DefaultTextWidth, suffixed by a newlines.
Info is a wrapper for fmt.Fprintf with a bold "INFO: " prefix.
Input prints the prefix to the writer, and then reads a single line from the reader, trimming writespace.
InputSecure is like Input but doesn't echo input back to the terminal, if and only if r is os.Stdin.
IsStdin returns true if r is standard input.
IsTTY returns true if fd is a terminal.
NewSpinner returns a new instance of a terminal prompt spinner.
NewTable contructs a new Table.
Output writes the help text to the writer using Wrap with DefaultTextWidth, suffixed by a newlines.
PrintBackend pretty prints a fastly.Backend structure in verbose format to a given io.Writer.
PrintDictionary pretty prints a fastly.Dictionary structure in verbose format to a given io.Writer.
PrintDictionaryItem pretty prints a fastly.DictionaryInfo structure in verbose format to a given io.Writer.
PrintDictionaryItemKV pretty prints only the key/value pairs from a dictionary item.
PrintHealthCheck pretty prints a fastly.HealthCheck structure in verbose format to a given io.Writer.
PrintLines pretty prints a Lines struct with one item per line.
PrintObjectStore pretty prints a fastly.Dictionary structure in verbose format to a given io.Writer.
PrintObjectStoreKeys pretty prints a list of object store keys in verbose format to a given io.Writer.
PrintObjectStoreKeyValue pretty prints a value from an object store to a given io.Writer.
PrintResource pretty prints a fastly.Resource structure in verbose format to a given io.Writer.
PrintSecret displays store data.
PrintSecretsTbl displays secrets data in a table format.
PrintSecretStore displays store data.
PrintSecretStoresTbl displays store data in a table format.
PrintService pretty prints a fastly.Service structure in verbose format to a given io.Writer.
PrintVersion pretty prints a fastly.Version structure in verbose format to a given io.Writer.
Success is a wrapper for fmt.Fprintf with a bold green "SUCCESS: " prefix.
Warning is a wrapper for fmt.Fprintf with a bold yellow "WARNING: " prefix.
Wrap a string at word boundaries with a maximum line length of width.
WrapIndent a string at word boundaries with a maximum line length of width and indenting the lines by a specified number of spaces.
# Constants
DefaultTextWidth is the width that should be passed to Wrap for most general-purpose blocks of text intended for the user.
# Variables
Bold is a Sprint-class function that makes the arguments bold.
BoldGreen is a Sprint-class function that makes the arguments bold and green.
BoldRed is a Sprint-class function that makes the arguments bold and red.
BoldYellow is a Sprint-class function that makes the arguments bold and yellow.
Reset is a Sprint-class function that resets the color for the arguments.
# Structs
Table wraps an instance of a tabwriter and provides helper methods to easily create a table, add a header, add rows and print to the writer.
# Interfaces
Spinner represents a terminal prompt status indicator.
# Type aliases
Lines is the struct that is used by PrintLines.