mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-31 06:03:29 +08:00
13 lines
295 B
JavaScript
Executable File
13 lines
295 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
'use strict';
|
|
|
|
const { isHookEnabled } = require('../lib/hook-flags');
|
|
|
|
const [, , hookId, profilesCsv] = process.argv;
|
|
if (!hookId) {
|
|
process.stdout.write('yes');
|
|
process.exit(0);
|
|
}
|
|
|
|
process.stdout.write(isHookEnabled(hookId, { profiles: profilesCsv }) ? 'yes' : 'no');
|