Skip to content

clerc

Namespaces

NamespaceDescription
Parser-
Types-

Classes

ClassDescription
Clerc-
InvalidCommandError-
InvalidParametersError-
MissingRequiredFlagError-
MissingRequiredMetadataError-
NoCommandSpecifiedError-
NoSuchCommandError-

Interfaces

InterfaceDescription
BaseContext-
Command-
CommandCustomOptions-
CommandHelpOptions-
CommandOptions-
ContextStore-
CreateOptions-
FlagCustomOptions-
FriendlyErrorPluginOptions-
GroupsOptionsOptions for defining groups in help output.
HelpOptions-
HelpPluginOptions-
InterceptorObject-
NotFoundPluginOptions-
ParameterCustomOptions-
ParseOptions-
Plugin-
UpdateNotifierPluginOptions-

Type Aliases

Type AliasDescription
ClercFlagDefinitionValue-
ClercFlagOptions-
ClercFlagsDefinition-
CommandHandler-
CommandHandlerContext-
CommandsMap-
CommandsRecord-
CommandWithHandler-
ErrorHandler-
GroupDefinitionA group definition as a tuple of [key, displayName]. The key is used in help options to assign items to groups. The displayName is shown in the help output.
InferParameters-
Interceptor-
InterceptorContext-
InterceptorHandler-
InterceptorNextFunction to call the next interceptor in the chain. MUST be awaited.
MakeEmitterEvents-
ParameterDefinitionValue-
ParameterOptions-

Variables

VariableDescription
defaultFormatters-
DOUBLE_DASH-
KNOWN_FLAG-
PARAMETER-
UNKNOWN_FLAG-

Functions

FunctionDescription
Cli-
completionsPlugin-
createStopAtFirstParameter-
defineCommand-
definePlugin-
extractParameterInfo-
friendlyErrorPlugin-
helpPlugin-
normalizeFlagValue-
normalizeParameterValue-
notFoundPlugin-
resolveCommand-
strictFlagsPlugin-
updateNotifierPluginPlugin to check for CLI updates using update-notifier.
versionPlugin-

References

InvalidSchemaError

Re-exports InvalidSchemaError

Released under the MIT license