flex-plugins-utils-logger v4.2.2
Flex Plugin Utils Logger
General logger methods used by various Flex Plugins repos
Modules
This library provides the following modules
logger
The logger provides the following methods:
debugOnly logs ifDEBUG=trueorTRACE=trueis setinfoLogs the text as info levelwarningLogs the text as warning level in yellowerrorLogs the text as error level in redtraceOnly logs ifTRACE=trueis set; this is the most verbose modesuccessLogs the text in info level in greennewlineAdds a new linenoticeLogs the text as info level in cyanclearTerminalClears the terminal window ifPERSIST_TERMINAL=trueis not set
All of these log commands support some basic formatting:
bold
Texts can be bolded using **the text to bold**.
italic
Texts can be italicized using *the text to italicize*.
success
Texts can be shown in green using ++the text in green++.
warning
Texts can be shown in yellow using !!the text in yellow!!.
error
Texts can be shown in red using --the text in red--.
link
Texts can be shown in cyan using [[the text in cyan]].
info
Texts can be shown in blue using @@the text in blue@@.
code
Texts can be shown in magenta using {{the text in magenta}}.
dim
Texts can be shown in dim using ..the dim text..
Inquirer
This package provides 3 main methods:
const prompt = async (question: Question): Promise<Question'name'>
Prompts the user to answer the question. Upon validation, returns the answer. Question interface is defined as
export interface Question {
name: string;
message: string;
type?: 'list' | 'input' | 'password';
validate?(input: string): boolean | string | Promise<boolean | string>;
}const confirm = async (question: string, defaultAnswer?: YNAnswer): Promise
Provides a confirmation prompt. The response is a Promise with true resolving to successful confirmation, and false being the rejected confirmation. The YNAnswer is 'Y' | 'N'.
const choose = async (question: Question, choices: string[]): Promise<Question'name'>;
Prompts the user to select from one of the choices.
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago