summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCastor Gemini <[email protected]>2025-08-24 01:21:01 -0500
committerJeff Carr <[email protected]>2025-08-24 01:21:01 -0500
commit357c20027fda714af0e08b3f9ddf89edfeb6ef39 (patch)
tree8e69ca6ecc1a4e7b7c87ee4e5fbd2bd25f80b639
parent0a28d985b88866d131e3c6e2ce025edb99c1258c (diff)
Refactor: Rename gemini to regex throughout the codebase
-rw-r--r--argv.go8
-rw-r--r--doImport.go2
-rw-r--r--doInput.go2
-rw-r--r--doOutput.go4
-rw-r--r--exit.go4
-rw-r--r--main.go2
-rw-r--r--prettyFormat.go2
-rw-r--r--structs.go2
8 files changed, 13 insertions, 13 deletions
diff --git a/argv.go b/argv.go
index cfba175..ff5c70f 100644
--- a/argv.go
+++ b/argv.go
@@ -13,9 +13,9 @@ type args struct {
Add string `arg:"--add" help:"add a new chat"`
Format *EmptyCmd `arg:"subcommand:format" help:"add a conversation"`
Playback *PlaybackCmd `arg:"subcommand:playback" help:"dump your prior conversations to the terminal'"`
- Output string `arg:"--output" help:"should get a string from gemini-cli"`
- Input string `arg:"--input" help:"should get a string from gemini-cli"`
- ImportFile string `arg:"--import" help:"import a file from gemini-cli"`
+ Output string `arg:"--output" help:"should get a string from regex-cli"`
+ Input string `arg:"--input" help:"should get a string from regex-cli"`
+ ImportFile string `arg:"--import" help:"import a file from regex-cli"`
Force bool `arg:"--force" help:"try to strong arm things"`
Verbose bool `arg:"--verbose" help:"show more output"`
Bash bool `arg:"--bash" help:"generate bash completion"`
@@ -37,6 +37,6 @@ func (args) Version() string {
func (a args) Description() string {
return `
-gemini -- interact with Googles' Gemini AI
+regex -- interact with Googles' Gemini AI
`
}
diff --git a/doImport.go b/doImport.go
index a9b7083..def0071 100644
--- a/doImport.go
+++ b/doImport.go
@@ -37,7 +37,7 @@ func doImport(filename string) {
// If the "auto" chat is found, add the new entry.
if autoChat != nil {
newEntry := &chatpb.ChatEntry{
- From: chatpb.Who_GEMINI,
+ From: chatpb.Who_REGEX,
Ctime: timestamppb.New(time.Now()),
ToolCalls: []*chatpb.ToolCall{
{
diff --git a/doInput.go b/doInput.go
index 3278d36..fe7cf21 100644
--- a/doInput.go
+++ b/doInput.go
@@ -10,7 +10,7 @@ import (
)
func doInput(s string) {
- filename := "/tmp/gemini-input.log"
+ filename := "/tmp/regex-input.log"
f, err := os.OpenFile(filename, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
log.Println(err)
diff --git a/doOutput.go b/doOutput.go
index 0e193c2..1ff81fd 100644
--- a/doOutput.go
+++ b/doOutput.go
@@ -10,7 +10,7 @@ import (
)
func doOutput(s string) {
- filename := "/tmp/gemini-output.log"
+ filename := "/tmp/regex-output.log"
f, err := os.OpenFile(filename, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
log.Println(err)
@@ -42,7 +42,7 @@ func doOutput(s string) {
// If the "auto" chat is found, add the new entry.
if autoChat != nil {
newEntry := &chatpb.ChatEntry{
- From: chatpb.Who_GEMINI,
+ From: chatpb.Who_REGEX,
Content: s,
Ctime: timestamppb.New(time.Now()),
}
diff --git a/exit.go b/exit.go
index 8acd5e8..ad6195b 100644
--- a/exit.go
+++ b/exit.go
@@ -11,12 +11,12 @@ import (
func okExit(thing string) {
if thing != "" {
- log.Info("gemini exit:", thing, "ok")
+ log.Info("regex exit:", thing, "ok")
}
os.Exit(0)
}
func badExit(err error) {
- log.Info("gemini failed: ", err)
+ log.Info("regex failed: ", err)
os.Exit(-1)
}
diff --git a/main.go b/main.go
index 2edfe8b..cada3c2 100644
--- a/main.go
+++ b/main.go
@@ -26,7 +26,7 @@ var BUILDTIME string
var resources embed.FS
// used for shell auto completion
-var ARGNAME string = "gemini"
+var ARGNAME string = "regex"
// using this for now. triggers config save
var configSave bool
diff --git a/prettyFormat.go b/prettyFormat.go
index 8d7ecbd..03602bf 100644
--- a/prettyFormat.go
+++ b/prettyFormat.go
@@ -56,7 +56,7 @@ func prettyFormatChat(chat *chatpb.Chat) {
// printContent handles the wrapping for the main conversational text.
func printContent(author, timestamp, content string) {
- // Right-align USER messages, left-align GEMINI messages.
+ // Right-align USER messages, left-align REGEX messages.
if author == "USER" {
printRightAligned(author, timestamp, content)
} else {
diff --git a/structs.go b/structs.go
index 8b60bb2..a66f1fd 100644
--- a/structs.go
+++ b/structs.go
@@ -14,6 +14,6 @@ var me *mainType
// this app's variables
type mainType struct {
pp *arg.Parser // for parsing the command line args. Yay to alexf lint!
- chats *chatpb.Chats // all our prior conversations with gemini
+ chats *chatpb.Chats // all our prior conversations with regex
myGui *gui.Node // the gui toolkit handle
}