fastmod
A fast partial replacement for the
codemodtool, replace and replace all in the whole codebase. Regexes are matched by Rustregexcrate. More information: https://github.com/facebookincubator/fastmod.
- Replace a
regexin all files of the current directory, ignoring files on.ignoreand.gitignore:
fastmod
- Replace a
regexin case-insensitive mode in specific files or directories:
fastmod --ignore-case --
- Replace a
regexin a specific directory in files filtered with a case-insensitiveglobpattern:
fastmod --dir --iglob '}'
- Replace for an exact string in
.jsor JSON files:
fastmod --fixed-strings --extensions
- Replace for an exact string without prompt for a confirmation (disables
regex):
fastmod --accept-all --fixed-strings
- Replace for an exact string without prompt for a confirmation, printing changed files:
fastmod --accept-all --print-changed-files --fixed-strings
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
