go-copilot-proxy/internal/cmd/root.go

24 lines
489 B
Go
Raw Normal View History

2025-08-05 11:08:53 +02:00
package cmd
import (
"github.com/spf13/cobra"
"gitlab.com/technofab/go-copilot-proxy/internal/config"
)
var rootCmd = &cobra.Command{
Use: "go-copilot-proxy",
Short: "A Go-based proxy for GitHub Copilot",
Long: "go-copilot-proxy provides a local proxy server for GitHub Copilot API requests with automatic token management.",
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
config.InitLogging()
rootCmd.AddCommand(serveCmd)
rootCmd.AddCommand(authCmd)
}