diff --git a/src/cli.ts b/src/cli.ts index ab44790..01b0429 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -99,7 +99,7 @@ async function runInstallCommand(options: { force?: boolean; silent?: boolean }) } // Install - const result = await install({ silent: options.silent }); + const result = await install({ silent: options.silent, force: options.force }); if (!result.success) { logger.blank(); diff --git a/src/install.ts b/src/install.ts index c85f446..a63627c 100644 --- a/src/install.ts +++ b/src/install.ts @@ -4,8 +4,8 @@ import fs from 'fs/promises'; import { Logger } from './utils/logger.js'; -import { getConfig, toGitPath } from './utils/paths.js'; -import { createHookInstallPlan } from './utils/hook.js'; +import { getConfig, toGitPath, pathExists } from './utils/paths.js'; +import { createHookInstallPlan, isNococliHook } from './utils/hook.js'; import { getTemplateDir, setTemplateDir } from './utils/git.js'; import { detectPowerShellRuntime } from './utils/runtime.js'; import type { InstallOptions } from './types.js'; @@ -44,6 +44,20 @@ export async function install(options: InstallOptions = {}): Promise content.includes(marker)); +} + /** * Get list of default AI patterns */