patriksvensson / dotnet-example

A dotnet tool to list and run examples
MIT License
170 stars 15 forks source link

Allow examples folders to be customised #5

Closed atifaziz closed 3 years ago

atifaziz commented 3 years ago

Follow-up from discussion in PR #2, this PR allows an (optional) .examples file to specify one or more folders containing the examples. It enables the tool to be used by projects using other conventions than the hardwired ones (examples and samples).

If the .examples file does not exist, then the behaviour is the same as now (assuming conventional folders).

If the .examples file exists then it is parsed according to the following format:

Paths are trimmed before use.

This PR renders PR #2 obsolete.