This commit is contained in:
2025-12-07 10:06:10 -05:00
parent 1de4ae1a24
commit b89dc65e1f
2 changed files with 178 additions and 23 deletions

View File

@@ -1,4 +1,5 @@
package new
import (
"fmt"
"os"
@@ -9,7 +10,8 @@ import (
)
func getName() string {
out, err := exec.Command("git", "config", "user.name").Output(); if err == nil {
out, err := exec.Command("git", "config", "user.name").Output()
if err == nil {
s := strings.TrimSpace(string(out))
if s != "" {
return s