ast-grep
Search, lint, and rewrite code using AST patterns. More information: https://ast-grep.github.io/reference/cli.html.
- Search for a pattern in files:
ast-grep run ''
- Search for a pattern in a specific language:
ast-grep run ''
- Rewrite code matching a pattern:
ast-grep run '' ''
- Run rules from a configuration file:
ast-grep scan
- Interactively search and rewrite code:
ast-grep run ''
- Display help for a subcommand:
ast-grep
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
