package
1.7.1
Repository: https://github.com/fastly/cli.git
Documentation: pkg.go.dev

# 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.
LastFullLine returns the last full \n delimited line in s.
NewInteractiveProgress returns a InteractiveProgress outputting to the writer.
NewNullProgress returns a NullProgress.
NewProgress returns a Progress based on the given verbosity level or whether the current process is running in a terminal environment.
NewQuietProgress returns a QuietProgress outputting to the writer.
NewTable contructs a new Table.
NewVerboseProgress returns a VerboseProgress outputting to the writer.
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.
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.
ResetProgress wraps the NewProgress and passes through a restart option.
Spin calls Tick on the target with the relevant frame every interval.
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.
No description provided by the author
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

InteractiveProgress is an implementation of Progress that includes a spinner at the beginning of each Step, and where newline-delimited lines written via Write overwrite the current step line in the output.
NullProgress is an implementation of Progress which discards everything written into it and produces no output.
No description provided by the author
QuietProgress is an implementation of Progress that attempts to be quiet in it's output.
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.
VerboseProgress is an implementation of Progress that treats Step and Write more or less the same: it simply pipes all output to the provided Writer.

# Interfaces

Progress is a producer contract, abstracting over the quiet and verbose Progress types.
Ticker is a small consumer contract for the Spin function, capturing part of the Progress interface.

# Type aliases

Option represents optional configuration for a Progress type.