pull-pal/cmd/debug-llm.go
Maximillian von Briesen ab7521477a
begin implementing comments (#2)
add a section of the main loop that checks for comments on PRs that the
bot has opened

reworks git logic and adds debug commands for git and llm stuff
changes a  bunch of other stuff too
2023-05-08 20:14:19 -04:00

33 lines
551 B
Go

package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
var debugLLMCmd = &cobra.Command{
Use: "debug-llm",
Short: "debug llm functionality",
Run: func(cmd *cobra.Command, args []string) {
cfg := getConfig()
p, err := getPullPal(cmd.Context(), cfg)
if err != nil {
fmt.Println("error creating new pull pal", err)
return
}
fmt.Println("Successfully initialized pull pal")
err = p.DebugLLM()
if err != nil {
fmt.Println("err debugging prompts", err)
return
}
},
}
func init() {
rootCmd.AddCommand(debugLLMCmd)
}