You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `--template-path`: Path to a custom rendering template.
369
370
- `--unsafe`: Deactivates the dependency graph safety checks.
370
371
- `--single-output`: Makes Weaver generate only one single Swift file.
371
-
- `--input-path`: Path to the project's Swift code. Defaults to `project-path`. Supports [unix globbing](https://en.wikipedia.org/wiki/Glob_(programming)). Variadic parameter, which means it can be set more than once.
372
+
- `--input-path`: Path to the project's Swift code. Defaults to `project-path`. Variadic parameter, which means it can be set more than once. By default, Weaver recursively read any Swift file located under the `input-path`.
372
373
- `--ignored-path`: Same than `input-path` but for ignoring files which shouldn't be parsed by Weaver.
374
+
- `--recursive-off`: Deactivates recursivity for`input-path` and `ignored-path`.
373
375
374
376
### Configuration File:
375
377
@@ -382,12 +384,11 @@ Parameters are named the same, but snakecased.
382
384
For example, the [sample project configuration](https://github.com/scribd/Weaver/blob/master/Sample/.sample.weaver.yaml) looks like:
383
385
384
386
```yaml
385
-
output_path: "Sample/Generated"
387
+
output_path: Sample/Generated
386
388
input_paths:
387
-
- "Sample/*.swift"
388
-
- "Sample/**/*.swift"
389
+
- Sample
389
390
ignored_paths:
390
-
- "Sample/Generated/*"
391
+
- Sample/Generated
391
392
```
392
393
393
394
## Export Dependency Graph
@@ -396,7 +397,6 @@ Weaver can ouput a JSON representation of the dependency graph of a project.
396
397
397
398
```bash
398
399
$ weaver json --help
399
-
400
400
Usage:
401
401
402
402
$ weaver json
@@ -407,6 +407,7 @@ Options:
407
407
--pretty [default: false]
408
408
--input-path - Paths to input files.
409
409
--ignored-path - Paths to ignore.
410
+
--recursive-off
410
411
```
411
412
412
413
For an output example, please check this [Gist](https://gist.github.com/trupin/9438713f8fae0a5a7f424eca1976f42b).
@@ -417,7 +418,6 @@ Weaver can output the input/output `xcfilelist` files which can then be added to
0 commit comments