mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-01 12:20:24 +08:00
clarify search_files is an agent tool instead of command line
Signed-off-by: Daily Dai <lei.dai@salesforce.com>
This commit is contained in:
parent
e701e00a7c
commit
3a8d8ae790
@ -31,10 +31,21 @@ When updating site URLs, follow this workflow:
|
||||
|
||||
### Step 1: Discover All URL References
|
||||
|
||||
Use `search_files` to find all occurrences of `urlPathPrefix` in the project:
|
||||
Search for all occurrences of `urlPathPrefix` across the project metadata files.
|
||||
|
||||
**For agents**: Use the `search_files` tool with these parameters:
|
||||
- path: `force-app/main/default`
|
||||
- regex: `urlPathPrefix`
|
||||
- file_pattern: `*.xml`
|
||||
|
||||
**For humans**: Use your IDE's search functionality or command line tools:
|
||||
```bash
|
||||
search_files --path force-app/main/default --regex "urlPathPrefix" --file-pattern "*.xml"
|
||||
# Using grep
|
||||
grep -r "urlPathPrefix" force-app/main/default --include="*.xml"
|
||||
|
||||
# Using VS Code: Ctrl+Shift+F (Windows/Linux) or Cmd+Shift+F (Mac)
|
||||
# Search for: urlPathPrefix
|
||||
# Files to include: *.xml
|
||||
```
|
||||
|
||||
### Step 2: Identify URL Groups
|
||||
|
||||
@ -31,10 +31,21 @@ When updating site URLs, follow this workflow:
|
||||
|
||||
### Step 1: Discover All URL References
|
||||
|
||||
Use `search_files` to find all occurrences of `urlPathPrefix` in the project:
|
||||
Search for all occurrences of `urlPathPrefix` across the project metadata files.
|
||||
|
||||
**For agents**: Use the `search_files` tool with these parameters:
|
||||
- path: `force-app/main/default`
|
||||
- regex: `urlPathPrefix`
|
||||
- file_pattern: `*.xml`
|
||||
|
||||
**For humans**: Use your IDE's search functionality or command line tools:
|
||||
```bash
|
||||
search_files --path force-app/main/default --regex "urlPathPrefix" --file-pattern "*.xml"
|
||||
# Using grep
|
||||
grep -r "urlPathPrefix" force-app/main/default --include="*.xml"
|
||||
|
||||
# Using VS Code: Ctrl+Shift+F (Windows/Linux) or Cmd+Shift+F (Mac)
|
||||
# Search for: urlPathPrefix
|
||||
# Files to include: *.xml
|
||||
```
|
||||
|
||||
### Step 2: Identify URL Groups
|
||||
|
||||
Loading…
Reference in New Issue
Block a user