added new and add commands for local logic
This commit is contained in:
31
examples.md
31
examples.md
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user