ionide / Waypoint

Opinionated solution template for building F# OSS libraries and tools.
https://ionide.io/Libraries/waypoint.html
MIT License
74 stars 13 forks source link

Fill TODO:... via post script in template #26

Closed kMutagene closed 4 years ago

kMutagene commented 4 years ago

Similarly to the way ProjectScaffold did it with an init script, Waypoint could fill the TODOs left in e.g. build.fsx via a script that gets executed after template initiation. The functionality I refer to would be added to the postActions section of the template.json (https://github.com/dotnet/templating/wiki/Post-Action-Registry)

Is this a feature that would fit/ is wanted? If so, i could have a go at implementing it.

kMutagene commented 4 years ago

seems like script output can currently not be displayed by the templating engine, meaning that taking the interactive way of "please enter github owner name" ... will not work. https://github.com/dotnet/templating/issues/2388

Whats left is passing these as optional arguments directly to dotnet new waypoint (e.g. --githubOwner kMutagene).