Skip to content

Commit 65035e8

Browse files
committed
docs: add phase4 merge examples
1 parent 16769e8 commit 65035e8

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,15 @@ recur merge --pattern "api.user" --sep "." --pattern "api_user" --sep "_" --show
198198
# Normalize output to dots for display
199199
recur merge --pattern "main.command.tree" --sep "." --pattern "main_command_tree" --sep "_" --sep-replace-default "."
200200

201-
# File mode: merge cached JSON outputs
202-
recur merge main.command.docs.json --sep "." main_command_src.json --sep "_" --base "main.command" --show-sep
201+
# Phase 4 file mode: merge cached JSON outputs
202+
recur tree "main.command" --sep "." --json > main.command.json
203+
recur tree "main_command" --sep "_" --json > main_command.json
204+
recur merge main.command.json --sep "." main_command.json --sep "_" --base "main.command" --show-sep
205+
206+
# File mode with files JSON
207+
recur files "main.command.**" --sep "." --json > main.command.files.json
208+
recur files "main_command_**" --sep "_" --json > main_command.files.json
209+
recur merge main.command.files.json --sep "." main_command.files.json --sep "_" --base "main.command" --show-sep
203210
```
204211

205212
### `recur related` — find sibling files

0 commit comments

Comments
 (0)