fsprojects / ProjectScaffold

A prototypical .NET solution (file system layout and tooling), recommended for F# projects
http://fsprojects.github.io/ProjectScaffold
The Unlicense
515 stars 154 forks source link

license options #150

Open bleis-tift opened 9 years ago

bleis-tift commented 9 years ago

By default, the license is Unlicense. I want to select it from some licenses(ex. GPL, MIT, CC0, ...).

allykzam commented 9 years ago

Ditto this. init.fsx could be updated to ask the user what kind of license they want to use, and supply a few options; if the user likes any of the specified options, grab the text from the appropriate URL (I tend to go straight for choosealicense.com as they have a nice listing, and provide a link to the source) and dump it into LICENSE.txt, perhaps adding commentary about adding the header blocks (for licenses that suggest adding them)?

Seems like an easy enough change that I'd be happy to prototype and do a pull request for, if anyone wants to suggest an appropriate way to ask the user to make a selection, and an acceptable list of licenses to choose from. My first thought on how to select is just give a numbered list; second thought is make the user type in the acronym for the desired license (little more annoying for Apache). As for license choices, I assume we'd want the basics:

jackfoxy commented 6 years ago

I would be happy to accept a PR