Skip to content

Commit 84ddc06

Browse files
fix: rename command part 12
1 parent 5ba5510 commit 84ddc06

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

website/reference/playground.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ The **source AST dump** is where you can see the AST representation of your sour
2929
### 3. Matcher Editor
3030
The **matcher editor** is where you can write the code patterns and rewrite rules that you want to apply to your source code. The matcher uses the same language as your source code. The matcher editor has two tabs: **Pattern** and **YAML**.
3131

32-
- **Pattern** provides an _approachable_ option where you can write the [code pattern](/guide/pattern-syntax.html) that you want to match in your source code. You can also write a rewrite expression that specifies how to modify the matched code in the subeditor below. It roughly emulates the behavior of [`sg run`](/reference/cli/run.html).
33-
- **YAML** provides an _advanced_ option where you can write a [YAML rule](/reference/yaml.html) that defines the pattern and metadata for your ast-grep scan. You can specify the [rule object](/reference/rule.html), id, message, severity, and other options for your rule. It is a web counterpart of [`sg scan`](/reference/cli/scan.html).
32+
- **Pattern** provides an _approachable_ option where you can write the [code pattern](/guide/pattern-syntax.html) that you want to match in your source code. You can also write a rewrite expression that specifies how to modify the matched code in the subeditor below. It roughly emulates the behavior of [`ast-grep run`](/reference/cli/run.html).
33+
- **YAML** provides an _advanced_ option where you can write a [YAML rule](/reference/yaml.html) that defines the pattern and metadata for your ast-grep scan. You can specify the [rule object](/reference/rule.html), id, message, severity, and other options for your rule. It is a web counterpart of [`ast-grep scan`](/reference/cli/scan.html).
3434

3535
### 4. Matcher Info
3636

website/reference/sgconfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ outline: [2, 3]
88

99
To scan a project with multiple rules, you need to specify the root of a project by maintaining a `sgconfig.yml` file.
1010
The file is similar to `tsconfig.json` in TypeScript or `.eslintrc.js` in eslint.
11-
You can also create the `sgconfig.yml` and related file scaffoldings by the `sg new` command.
11+
You can also create the `sgconfig.yml` and related file scaffoldings by the `ast-grep new` command.
1212

1313
::: tip sgconfig.yml is not `rule.yml`
1414
ast-grep has several kinds of yaml files. `sgconfig.yml` is for configuring ast-grep, like how to find rule directories or to register custom languages.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy