Recursive text search for MoonX.
moonx cli/rg -n 'TODO' .
moonx cli/rg -F -g '*.mbt' 'StringBuilder' .
printf 'hello\n' | moonx cli/rg 'hello' -| Option | Description |
|---|---|
| --regexp PATTERN, -e PATTERN | A pattern to search for. |
| --files | Print each file that would be searched. |
| --fixed-strings, -F | Treat all patterns as literals. Default: false. |
| --no-fixed-strings | Disable --fixed-strings. |
| --glob GLOB, -g GLOB | Include or exclude file paths. |
| --help, -h | Show help. |
| --hidden, -. | Search hidden files and directories. Default: false. |
| --no-hidden | Disable --hidden. |
| --ignore-case, -i | Case insensitive search. |
| --json | Show search results in a JSON Lines format. |
| --no-json | Disable --json. |
| --line-number, -n | Print one-based line numbers. Off by default on every output destination; -n enables them explicitly. |
| --version, -V | Show the version. |