import { where } from '../../presentation/queries-cli.js';
export const command = {
    name: 'where [name]',
    description: 'Find where a symbol is defined and used (minimal, fast lookup)',
    queryOpts: true,
    options: [['-f, --file <path>', 'File overview: list symbols, imports, exports']],
    validate([name], opts) {
        if (!name && !opts.file) {
            return 'Provide a symbol name or use --file <path>';
        }
    },
    execute([name], opts, ctx) {
        const target = (opts.file || name);
        where(target, opts.db, {
            file: !!opts.file,
            ...ctx.resolveQueryOpts(opts),
        });
    },
};
//# sourceMappingURL=where.js.map