/src/utils/embedded/providers/rg.ts
https://github.com/fabiospampinato/vscode-todo-plus · TypeScript · 26 lines · 11 code · 12 blank · 3 comment · 0 complexity · 48811c491f7ff7b5e5299b6499ab8a0a MD5 · raw file
- /* IMPORT */
- import * as execa from 'execa';
- import Config from '../../../config';
- import AG from './ag';
- /* RG */ // ripgrep //URL: https://github.com/BurntSushi/ripgrep
- class RG extends AG {
- static bin = 'rg';
- execa ( filePaths ) {
- const config = Config.get ();
- return execa ( RG.bin, ['--color', 'never', '--with-filename', '--pretty', ...config.embedded.providers.rg.args, config.embedded.providers.rg.regex, ...filePaths] );
- }
- }
- /* EXPORT */
- export default RG;