adventure-map icon indicating copy to clipboard operation
adventure-map copied to clipboard

Add an option to suppress the attempt to create boilerplates

Open weilu opened this issue 11 years ago • 5 comments

weilu avatar Oct 20 '14 07:10 weilu

Great idea. Creating magical file seems bad though. Should probably go in datadir and also include direction to some command that will disable it. Maybe also provide an "always". If this is too much work though I'll just merge it as is.

timoxley avatar Oct 20 '14 07:10 timoxley

Note it should only be asking this if the user is missing files that exist in the boilerplate. Can you elaborate on the scenario where you want to have files in your boilerplate but not in the user's solution?

timoxley avatar Oct 20 '14 07:10 timoxley

I also have boilerplate in my problem descriptions. Some users may want to just copy those and create their own files instead of having folders created for them.

weilu avatar Oct 20 '14 07:10 weilu

I'm happy to move the file into datadir. always may not make sense because the generator generates boilerplates for all exercises at one go, so once it's there, the user won't be asked again.

weilu avatar Oct 20 '14 07:10 weilu

Sounds good. I suggest passing the "adventure" instance to setup.

timoxley avatar Oct 20 '14 08:10 timoxley