fsprojects / ProjectScaffold

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

Get project defaults from git config #245

Open juergenhoetzel opened 8 years ago

juergenhoetzel commented 8 years ago

It would be nice if promptFor would provide some defaults based the users git configuration:

→ git config --get user.name Juergen Hoetzel → git config --get user.email juergen@archlinux.org

so you don't have to enter them every time you create a new project.

forki commented 8 years ago

Cool. Are you going to send a PR? On Apr 9, 2016 13:55, "Jürgen Hötzel" notifications@github.com wrote:

It would be nice if promptFor would provide some defaults based the users git configuration:

→ git config --get user.name Juergen Hoetzel → git config --get user.email juergen@archlinux.org

so you don't have to enter them every time you create a new project.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/fsprojects/ProjectScaffold/issues/245

juergenhoetzel commented 8 years ago

Easy to implement using Fake.Git.CommandHelper. But I ran into an encoding issue in FAKE when using runGitCommand:

git config --get user.email
番牥敧䁮牡档楬畮⹸牯੧

https://github.com/fsharp/FAKE/pull/1212 fixes the issue. Would you mind releasing a new FAKE package, so I can implement this?