mirror of
https://gitlab.com/TECHNOFAB/go-copilot-proxy.git
synced 2025-12-11 22:10:06 +01:00
23 lines
489 B
Go
23 lines
489 B
Go
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)
|
|
}
|