CODESEARCH(1)
πΈ CODESEARCH π
okay bestie, gather round, because we're talking about codesearch β the Debian Codesearch CLI tool π it lives in your terminal, it finds stuff, and it's lowkey iconic.
β¨ DESCRIPTION β¨
here's the whole vibe, exactly as the tool spits it out when you summon it:
usage: codesearch [-h] [--max-results MAX_RESULTS] [-q] [-l] [--nocolor]
[-n]
[-d] [-x EXCLUDE] [-m {literal,regexp}] [--per-package]
searchstring
π¦ positional arguments:
searchstringβ yeah this is the thing you're looking for. that's it. that's the whole job. the search string. periodt.
π§ options:
-h,--helpβ shows you this help message and then dips (exit). your little safety net π«Ά--max-results MAX_RESULTSβ takes a value calledMAX_RESULTS. and that is genuinely all the manpage says about it, bestie. no description, no elaboration, it's giving mysterious main character energy π-q,--quietβ quiet mode. again, the manpage just... leaves it there with no explanation. silence really is the point π-l,--linenumberβ linenumber. also undescribed. we love a flag that lets the name do the talking β¨--nocolorβ Do not colorize output. so no pretty rainbow text, just plain unseasoned output. sad but sometimes necessary π-n,--print-filenamesβ Print only matching filenames, no contents. just the names, no receipts, no receipts-adjacent content. like a guest list, not the whole party π-d,--dedupeβ amalgamate results for the same file in different packages. so if the same file keeps showing up in a bunch of different packages, it gets smooshed into one. obsessed. no more duplicate jumpscares π₯-x EXCLUDE,--exclude EXCLUDEβ list of path fragments to exclude from results. you hand it a list of path fragments and those get yeeted out of your results. not invited to the function π«-m {literal,regexp},--mode {literal,regexp}β search mode (literal or regexp). pick your fighter:literalorregexp. two options, one destiny β--per-packageβ group results per source package. so everything gets sorted by its source package instead of one big chaotic pile. organized. structured. slay π
lowkey important: a few of these options come with zero description in the manpage itself. i'm not out here making stuff up about what they do β i'm just telling you they exist, exactly as written. fr fr π
and that's the whole page, bestie!! this was codesearch version 1.0.0, dated June 2024 π thanks for reading, go search something, mwah π
β¨
π¦ where this page comes from
- debian trixie: debian-codesearch-cli 1.0.0+nmu1 Β· AGPL-3.0-or-later
- ubuntu questing: debian-codesearch-cli 1.0.0+nmu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms