Skip to content

Commit 8d61458

Browse files
authored
Merge pull request #2080 from ahoppen/ahoppen/codegen-from-command-line
Add documentation of how to run `CodeGeneration` from the command line in CONTRIBUTING.md
2 parents 1a38c3a + bbe42a9 commit 8d61458

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ Generated source code is not formatted to make it easier to spot changes when re
2929

3030
If you want to modify the generated files, open the [CodeGeneration](CodeGeneration) package and run the `generate-swift-syntax` executable.
3131

32+
Alternatively, you can generate the files from the command line by running the following command from the swift-syntax directory
33+
34+
```bash
35+
swift run --package-path CodeGeneration
36+
```
37+
3238
## Authoring commits
3339

3440
Prefer to squash the commits of your PR (*pull request*) and avoid adding commits like “Address review comments”. This creates a clearer git history, which doesn’t need to record the history of how the PR evolved.

0 commit comments

Comments
 (0)