From 53a427d1907301c6b5b53439df1cbe2aa352286c Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Fri, 25 Oct 2024 04:12:07 +0200 Subject: [PATCH] Delegate add sotry --- src/bin/add-story.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/bin/add-story.ts b/src/bin/add-story.ts index 3b72e5b0..66ab40ff 100644 --- a/src/bin/add-story.ts +++ b/src/bin/add-story.ts @@ -16,10 +16,20 @@ import { assert, Equals } from "tsafe/assert"; import type { BuildContext } from "./shared/buildContext"; import chalk from "chalk"; import { runFormat } from "./tools/runFormat"; +import { maybeDelegateCommandToCustomHandler } from "./shared/customHandler_delegate"; export async function command(params: { buildContext: BuildContext }) { const { buildContext } = params; + const { hasBeenHandled } = maybeDelegateCommandToCustomHandler({ + commandName: "add-story", + buildContext + }); + + if (hasBeenHandled) { + return; + } + console.log(chalk.cyan("Theme type:")); const themeType = await (async () => {