Skip to content

Commit 514021e

Browse files
committedApr 29, 2024··
Add docs about InterfaceFile
1 parent 25d2eb0 commit 514021e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎docs/configuration.md

+1
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ Variables that are marked as being templated are capable of using mockery-provid
198198
|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
199199
| InterfaceDir | The directory path of the original interface being mocked. This can be used as <br>`#!yaml dir: "{{.InterfaceDir}}"` to place your mocks adjacent to the original interface. This should not be used for external interfaces. |
200200
| InterfaceDirRelative | The directory path of the original interface being mocked, relative to the current working directory. If the path cannot be made relative to the current working directory, this variable will be set equal to `PackagePath` |
201+
| InterfaceFile | The file path of the original interface being mocked. **NOTE:** This option will only write one mock implementation to the output file. If multiple mocks are defined in your original file, only one mock will be written to the output. |
201202
| InterfaceName | The name of the original interface being mocked |
202203
| InterfaceNameCamel | Converts a string `interface_name` to `InterfaceName`. <br /><b style="color:var(--md-code-hl-number-color);">DEPRECATED</b>: use `{{ .InterfaceName | camelcase }}` instead |
203204
| InterfaceNameLowerCamel | Converts `InterfaceName` to `interfaceName` . <br /><b style="color:var(--md-code-hl-number-color);">DEPRECATED</b>: use `{{ .InterfaceName | camelcase | firstLower }}` instead |

0 commit comments

Comments
 (0)
Please sign in to comment.