完成基本功能

This commit is contained in:
zyj
2026-03-09 16:46:15 +08:00
parent d8851e7698
commit f55dd8ca03
57 changed files with 16098 additions and 6 deletions

View File

@@ -1,11 +1,19 @@
package main
import "github.com/zhuy1228/GitPilot/internal"
import (
"fmt"
"github.com/zhuy1228/GitPilot/internal/git"
)
func main() {
proxyInfo, err := internal.GetCurrentProxy()
gitClient := git.NewGitClient()
changes, err := gitClient.StagedFiles("F:\\Project\\nakama")
if err != nil {
panic(err)
}
println(proxyInfo.String())
fmt.Printf("共 %d 个文件变更:\n", len(changes))
for _, c := range changes {
fmt.Println(c)
}
}