boardgame-core/src/utils/command/index.ts

23 lines
704 B
TypeScript
Raw Normal View History

2026-04-02 08:58:11 +08:00
export { parseCommand } from './command-parse';
export { parseCommandSchema } from './schema-parse';
export { validateCommand, parseCommandWithSchema, applyCommandSchema } from './command-validate';
2026-04-02 08:58:11 +08:00
export {
createCommandRegistry,
registerCommand,
unregisterCommand,
hasCommand,
getCommand,
runCommand,
runCommandParsed,
createCommandRunnerContext,
} from './command-registry';
export type {
Command,
CommandParamSchema,
CommandOptionSchema,
CommandFlagSchema,
CommandSchema,
} from './types';
2026-04-02 08:58:11 +08:00
export type { CommandRunner, CommandRunnerHandler } from './command-runner';
export type { CommandRegistry, CommandRunnerContext } from './command-registry';