ProjectScaffold icon indicating copy to clipboard operation
ProjectScaffold copied to clipboard

Get project defaults from git config

Open juergenhoetzel opened this issue 9 years ago • 2 comments

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 [email protected]

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

juergenhoetzel avatar Apr 09 '16 11:04 juergenhoetzel

Cool. Are you going to send a PR? On Apr 9, 2016 13:55, "Jürgen Hötzel" [email protected] 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 [email protected]

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

forki avatar Apr 09 '16 11:04 forki

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?

juergenhoetzel avatar Apr 10 '16 11:04 juergenhoetzel