added new and add commands for local logic

This commit is contained in:
2026-02-08 15:18:49 -05:00
parent 6565a8546f
commit 122b7ea348
7 changed files with 337 additions and 74 deletions

View File

@@ -111,3 +111,34 @@ Subdirectory manifest (`design/.wp-materialize.json`):
- `git_repositories` entries use git commit timestamps for `created_on`/`last_modified` inference.
- `directories` entries use filesystem timestamps even if the path is inside a git repo.
## Scaffold Command Examples
Create a placeholder config:
```bash
wp-materialize new --config
wp-materialize new --config /path/to/config.json
```
Create a dummy manifest:
```bash
wp-materialize new --manifest /path/to/content
```
Add a file to a manifest:
```bash
wp-materialize add-file /path/to/content/post.md
wp-materialize add-file /path/to/content/post.md /path/to/content
wp-materialize add-file /path/to/content/post.md --current
```
Add a directory to a manifest:
```bash
wp-materialize add-subdir /path/to/content/notes
wp-materialize add-subdir /path/to/content/notes /path/to/content
wp-materialize add-subdir /path/to/content/notes --current
```