mirror of
https://gitlab.com/TECHNOFAB/go-copilot-proxy.git
synced 2025-12-11 22:10:06 +01:00
chore: initial commit
This commit is contained in:
commit
595200836c
16 changed files with 1571 additions and 0 deletions
23
internal/cmd/root.go
Normal file
23
internal/cmd/root.go
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue