Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bin: introduce mention-items subcommand
It is quite clunky to copy paste the output mention JSON into the items subcommand. So this introduces a new subcommand "mention-items" which automates that process. It will take an item from the mentions results and send it to items. By default it is the first mention, but can does accept an argument for another mention. Test Plan: Ran locally. See this example: $ OPENCTX_CONFIG=../provider/devdocs/dist/bundle.js pnpm openctx mentions 'abort controller' #1 AbortController — https://devdocs.io/dom/abortcontroller #2 AbortController.abort — https://devdocs.io/dom/abortcontroller/abort #3 AbortController.signal — https://devdocs.io/dom/abortcontroller/signal #4 AbortController.constructor — https://devdocs.io/dom/abortcontroller/abortcontroller #5 ReadableByteStreamController.byobRequest — https://devdocs.io/dom/readablebytestreamcontroller/byobrequest $ OPENCTX_CONFIG=../provider/devdocs/dist/bundle.js pnpm openctx mention-items 'abort controller' #1 AbortController — https://devdocs.io/dom/abortcontroller - ai.content: (13659 characters)
- Loading branch information