@clerc/core
Advanced tools
Comparing version 0.14.2 to 0.15.0
@@ -288,3 +288,7 @@ import * as _clerc_utils from '@clerc/utils'; | ||
declare const defineInspector: <C extends Clerc<{}>>(_cli: C, inspector: Inspector<C["_commands"]>) => Inspector<C["_commands"]>; | ||
declare const defineCommand: <N extends string | typeof SingleCommand, O extends CommandOptions<[...P], A, F>, P extends string[] = string[], A extends MaybeArray<string> = MaybeArray<string>, F extends Dict<FlagOptions> = Dict<FlagOptions>>(c: CommandWithHandler<N, O & CommandOptions<[...P], A, F>>) => CommandWithHandler<N, O & CommandOptions<[...P], A, F>>; | ||
declare const defineCommand: <N extends string | typeof SingleCommand, O extends CommandOptions<[...P], A, F>, P extends string[] = string[], A extends MaybeArray<string> = MaybeArray<string>, F extends Dict<FlagOptions> = Dict<FlagOptions>>(command: Command<N, O & CommandOptions<[...P], A, F>>, handler?: HandlerInCommand<Record<N, Command<N, O>> & Record<PropertyKey, never>, N> | undefined) => O & CommandOptions<[...P], A, F> & { | ||
handler: HandlerInCommand<Record<N, Command<N, O>> & Record<PropertyKey, never>, N> | undefined; | ||
name: N; | ||
description: string; | ||
}; | ||
@@ -291,0 +295,0 @@ declare class SingleCommandError extends Error { |
@@ -418,4 +418,4 @@ import { LiteEmit } from 'lite-emit'; | ||
const defineInspector = (_cli, inspector) => inspector; | ||
const defineCommand = (c) => c; | ||
const defineCommand = (command, handler) => ({ ...command, handler }); | ||
export { Clerc, CommandExistsError, CommandNameConflictError, CommonCommandExistsError, DescriptionNotSetError, MultipleCommandsMatchedError, NameNotSetError, NoCommandGivenError, NoSuchCommandError, ParentCommandExistsError, SingleCommand, SingleCommandAliasError, SingleCommandError, SubcommandExistsError, VersionNotSetError, compose, defineCommand, defineHandler, defineInspector, definePlugin, mapParametersToArguments, parseParameters, resolveArgv, resolveCommand, resolveFlattenCommands, resolveParametersBeforeFlag, resolveRootCommands, resolveSubcommandsByParent }; |
{ | ||
"name": "@clerc/core", | ||
"version": "0.14.2", | ||
"version": "0.15.0", | ||
"author": "Ray <nn_201312@163.com> (https://github.com/so1ve)", | ||
@@ -53,3 +53,3 @@ "description": "Clerc core", | ||
"type-flag": "^3.0.0", | ||
"@clerc/utils": "0.14.2" | ||
"@clerc/utils": "0.15.0" | ||
}, | ||
@@ -56,0 +56,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46044
1175
+ Added@clerc/utils@0.15.0(transitive)
- Removed@clerc/utils@0.14.2(transitive)
Updated@clerc/utils@0.15.0