- Switch chat command from Bubble Tea TUI to basic CLI with bufio. - Hardcode Grok model in commands, remove Viper config. - Stream responses directly in client, remove channel-based streaming. - Add safe previews/backups in edit, simplify prompts across tools. - Update git helper and trim unused deps in go.mod.
14 lines
256 B
Go
14 lines
256 B
Go
package git
|
|
|
|
import "os/exec"
|
|
|
|
func Run(args []string) string {
|
|
out, _ := exec.Command("git", args...).Output()
|
|
return string(out)
|
|
}
|
|
|
|
func IsRepo() bool {
|
|
_, err := exec.Command("git", "rev-parse", "--is-inside-work-tree").Output()
|
|
return err == nil
|
|
}
|