qwen-code/packages/cli/src/commands/hooks.tsx
2026-03-23 11:24:59 +08:00

25 lines
741 B
TypeScript

/**
* @license
* Copyright 2026 Qwen Team
* SPDX-License-Identifier: Apache-2.0
*/
import type { CommandModule } from 'yargs';
import { createDebugLogger } from '@qwen-code/qwen-code-core';
const debugLogger = createDebugLogger('HOOKS_UI');
export const hooksCommand: CommandModule = {
command: 'hooks',
aliases: ['hook'],
describe: 'Manage Qwen Code hooks (use /hooks in interactive mode).',
builder: (yargs) => yargs.version(false).help(false),
handler: () => {
// In CLI mode, this command is not interactive.
// Users should use /hooks in interactive mode for the full UI experience.
debugLogger.debug(
'Use /hooks in interactive mode to manage hooks with the UI.',
);
process.exit(0);
},
};