package
3.16.1+incompatible
Repository: https://github.com/redhat-developer/odo.git
Documentation: pkg.go.dev

# Packages

Package fidget implements CLI functionality for bored users waiting for results.

# Functions

Bold will print out a bolded string.
ColorPicker picks a color from colors slice defined at the starting of this file It increments the colorCounter variable so that next iteration returns a different color.
Deprecate will output a warning symbol and then "Deprecated" at the end of the output in YELLOW ⚠ <message all yellow>.
Describef will print out the first variable as BOLD and then the second not.
DisplayExperimentalWarning displays the experimental mode warning message.
Error will output in an appropriate "progress" manner ✗ <message>.
Errorf will output in an appropriate "progress" manner ✗ <message>.
ExplicitSpinner creates a spinner that can or not spin based on the value of the preventSpinning parameter.
Frror will output in an appropriate "progress" manner ✗ <message>.
Ferrorf will output in an appropriate "progress" manner ✗ <message>.
Finfof will simply print out information on a new (bolded) line this is intended as information *after* something has been deployed This will also use a WRITER input We will have to manually check to see if it's Windows platform or not to determine if we are allowed to bold the output or not.
Fprintf will output in an appropriate "information" manner; for e.g.
Fprintln will output a new line when applicable.
Fspinnerf creates a spinner, sets the prefix then returns it.
Fsuccess will output in an appropriate "progress" manner in out writer ✓ <message>.
Fwarning will output in an appropriate "progress" manner in out writer ⚠ <message>.
Fwarningf will output in an appropriate "warning" manner ⚠ <message>.
GetStderr gets the appropriate stderrfrom the OS.
GetStdout gets the appropriate stdout from the OS.
Info will simply print out information on a new (bolded) line this is intended as information *after* something has been deployed **Line in bold**.
Infof will simply print out information on a new (bolded) line this is intended as information *after* something has been deployed **Line in bold**.
IsAppleSilicon returns true if we are on a Mac M1 / Apple Silicon natively.
IsDebug returns true if we are debugging (-v is set to anything but 0).
IsJSON returns true if we are in machine output mode.
IsTerminal returns true if the writer w is a terminal This function is modified if we are running within Windows.
NewStatus creates a new default Status.
Printf will output in an appropriate "information" manner; for e.g.
Println will output a new line when applicable.
Sbold will return a bold string.
BoldColor will print out a bolded string with a color (that's passed in).
Section outputs a title in BLUE and underlined for separating a section (such as building a container, deploying files, etc.) T͟h͟i͟s͟ ͟i͟s͟ ͟u͟n͟d͟e͟r͟l͟i͟n͟e͟d͟ ͟b͟l͟u͟e͟ ͟t͟e͟x͟t͟.
Sectionf outputs a title in BLUE and underlined for separating a section (such as building a container, deploying files, etc.) T͟h͟i͟s͟ ͟i͟s͟ ͟u͟n͟d͟e͟r͟l͟i͟n͟e͟d͟ ͟b͟l͟u͟e͟ ͟t͟e͟x͟t͟.
Spinner creates a spinner, sets the prefix then returns it.
Spinnerf creates a spinner, sets the prefix then returns it.
SpinnerNoSpin is the same as the "Spinner" function but forces no spinning.
Stitle is the same as Title but returns the string instead.
StitleWithVersion is the same as Stitle, but it allows to customize the version message line.
Success will output in an appropriate "success" manner ✓ <message>.
Successf will output in an appropriate "progress" manner ✓ <message>.
Title Prints the logo as well as the first line being BLUE (indicator of the command information); the second line is optional and provides information in regard to what is being run.
Warning will output in an appropriate "progress" manner ⚠ <message>.
Warningf will output in an appropriate "warning" manner ⚠ <message>.

# Structs

Status is used to track ongoing status in a CLI, with a nice loading spinner when attached to a terminal.