This commit is contained in:
Jabberwocky238
2026-07-29 06:51:43 -04:00
parent 68cda1972c
commit 319f5dd148
64 changed files with 4952 additions and 2186 deletions
+32
View File
@@ -0,0 +1,32 @@
package gitctl
import (
"flag"
"fmt"
"os"
tea "github.com/charmbracelet/bubbletea"
)
func Run(args []string) {
fs := flag.NewFlagSet("ctl", flag.ExitOnError)
manage := fs.String("manage", "http://127.0.1.1:8094", "ManageService base URL (a simplegit -gitrpc listen address; simplegit no longer has a separate -manage port, ManageService is served on -gitrpc)")
fs.Parse(args)
client := newManageClient(*manage)
p := tea.NewProgram(newModel(client, *manage), tea.WithAltScreen())
if _, err := p.Run(); err != nil {
fmt.Fprintf(os.Stderr, "gitctl: %v\n", err)
os.Exit(1)
}
}