createColors(colorsOptions?): ColorsAttributes
colorsOptions:
ColorsOptionsReturns:
Colorscolors
Creates a colors from the provided colors option.
getArguments(schema?): FlagsAttributes
schema:
JSONSchema4 & { absolutePath: boolean; cli: { description?: string; exclude?: boolean; helper?: boolean; negatedDescription?: string; resetDescription?: string }; instanceof: string } | JSONSchema6 & { absolutePath: boolean; cli: { description?: string; exclude?: boolean; helper?: boolean; negatedDescription?: string; resetDescription?: string }; instanceof: string } | JSONSchema7 & { absolutePath: boolean; cli: { description?: string; exclude?: boolean; helper?: boolean; negatedDescription?: string; resetDescription?: string }; instanceof: string }a json schema to create arguments for (by default webpack schema is used)
Returns:
Flagsobject of arguments
Returns object of arguments.
isColorSupported(): booleanReturns:
booleantrue when colors supported, otherwise false
Checks whether this object is color supported.
processArguments(args, config, values): null | Problem[]Attributes
args:
Flagsobject of arguments
config:
ObjectConfigurationconfiguration
values:
Valuesobject with values
Returns:
null | Problem[]problems or null for success
Processes the provided arg.
Returns object of arguments.
Attributes
Returns object of arguments.
Attributes
Attributes
Creates a colors from the provided colors option.
Attributes
useColor:
booleanforce use colors
Type:
null | string | number | boolean | EnumValueObject | EnumValue[][index: {string}]EnumValue
[index: {string}]Argument
[index: {string}]any
Returns object of arguments.
Attributes
Type:
"unknown-argument" | "unexpected-non-array-in-path" | "unexpected-non-object-in-path" | "multiple-values-unexpected" | "invalid-value"Type:
"string" | "number" | "boolean"[index: {string}]Value[]