Skip to content

Commit

Permalink
add note to readme about specifying source
Browse files Browse the repository at this point in the history
  • Loading branch information
axfelix committed Jan 2, 2025
1 parent a81bc78 commit 7d316cc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ Specify a `startPattern` and an `endPattern`:
<!--SNIPSTART hellouniverse {"startPattern" : "const \\{ greet", "endPattern": "\\}\\)"} -->
```

**Specifying a source file**

If the named snippet you want to extract exists in multiple source repositories, provide the path to only that source file after the snippet name, followed by an `@`:

```
<!--SNIPSTART money-transfer-project-template-go-workflow @https://github.com/temporalio/money-transfer-project-template-go/workflow.go -->
```

## Run

From the root directory of your project run the following command:
Expand Down

0 comments on commit 7d316cc

Please sign in to comment.