mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-04 22:51:08 +00:00
25 lines
741 B
TypeScript
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);
|
|
},
|
|
};
|