Skip to content

@clerc/core ​

Namespaces ​

NamespaceDescription

Parser

‐

Types

‐

Classes ​

ClassDescription

Clerc

‐

InvalidCommandError

‐

InvalidParametersError

‐

MissingRequiredFlagError

‐

MissingRequiredMetadataError

‐

NoCommandSpecifiedError

‐

NoSuchCommandError

‐

Interfaces ​

InterfaceDescription

BaseContext

‐

Command

‐

CommandCustomOptions

‐

CommandOptions

‐

ContextStore

‐

CreateOptions

‐

FlagCustomOptions

‐

InterceptorObject

‐

ParameterCustomOptions

‐

ParseOptions

‐

Plugin

‐

Type Aliases ​

Type AliasDescription

ClercFlagDefinitionValue

‐

ClercFlagOptions

‐

ClercFlagsDefinition

‐

CommandHandler

‐

CommandHandlerContext

‐

CommandsMap

‐

CommandsRecord

‐

CommandWithHandler

‐

ErrorHandler

‐

InferParameters

‐

Interceptor

‐

InterceptorContext

‐

InterceptorHandler

‐

InterceptorNext

Function to call the next interceptor in the chain. MUST be awaited.

MakeEmitterEvents

‐

ParameterDefinitionValue

‐

ParameterOptions

‐

Variables ​

VariableDescription

DOUBLE_DASH

‐

KNOWN_FLAG

‐

PARAMETER

‐

UNKNOWN_FLAG

‐

Functions ​

FunctionDescription

createStopAtFirstParameter

‐

defineCommand

‐

definePlugin

‐

extractParameterInfo

‐

inferDefault

Infers the implicit default value for a flag type based on its type constructor. This is useful for help output to show the default values of types that have built-in defaults.

  • Boolean: false
  • [Boolean] (Counter): 0
  • [T] (Array): []
  • Object: {}
  • Others: undefined (no implicit default)

normalizeFlagValue

‐

normalizeParameterValue

‐

resolveCommand

‐

References ​

InvalidSchemaError ​

Re-exports InvalidSchemaError

在 MIT 许可证下发布