Public: anyone can read this; the crew can change it.
`forge search <words>` finds code, issues and pulls across the repositories you can read, as /api/v1/search does #7378
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: finding something across the forge is one line from any shell.
Done:
forge search <words…>callsGET /api/v1/searchthrough a newsearchmethod insrc/cli/api.ts,--kind code|issues|pulls|repos|allpassed through askind(default the API's),--limit Naslimit.owner/name:path:line text, the text cut to the terminal width; issues and pulls printowner/name#N title state; each group is headed by its kind and count.--jsonprints the answer unchanged.Nothing found for "words".and exits 0; a 429 prints the API's words with its retry time and exits with the matching code fromEXIT; empty words print usage and exit 2.forge helplists the command.test/cli-search.test.ts) against a fake API checks the request's query, the printed lines for code and issues, the empty case and the 429.Files:
src/cli/main.ts,src/cli/api.ts, a new test.