common.go | |
---|---|
|
|
Generated documentation is available at: https://pkg.go.dev/github.com/RedHatInsights/insights-operator-cli/commands Documentation in literate-programming-style is available at: https://redhatinsights.github.io/insights-operator-cli/packages/commands/common.html |
|
files will be filled by list of files that are found in given directory and displayed to user to select one of them |
|
colorizer contains instance of terminal colorizer interface |
|
SetColorizer function set the terminal colorizer. |
|
LoginCompleter implements a no-op completer needed to input random data, for example during testing. |
|
ConfigFileCompleter function implements completer based on list of files. |
|
ProceedQuestion ask user about y/n answer. |
|
ask user and wait for input |
|
only 'y' is accepted as "Yes" answer right now |
|
FillInConfigurationList function prepares a list of configuration files that are found in specified directory. |
|
iterate over all files and directories found |
|
check for any error |
|
Quit function will exit from the CLI client. |
|