summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-25 10:48:59 -0500
committerJeff Carr <[email protected]>2025-08-25 10:48:59 -0500
commita813b2e2064bfe6c87b29c18072ec18809580063 (patch)
tree127bc5d63befe3294105b555237b8d166e8c57b3
parent0b2ec9ce15cf17f12c6457396a9579d943115d67 (diff)
test
-rw-r--r--argv.go1
-rw-r--r--argvAutoshell.go2
-rw-r--r--main.go5
-rwxr-xr-xregexbin18045448 -> 0 bytes
4 files changed, 7 insertions, 1 deletions
diff --git a/argv.go b/argv.go
index fdcde1f..af66e83 100644
--- a/argv.go
+++ b/argv.go
@@ -15,6 +15,7 @@ type args struct {
Playback *PlaybackCmd `arg:"subcommand:playback" help:"dump your prior conversations to the terminal'"`
Output string `arg:"--output" help:"should get a string from regex-cli"`
Input string `arg:"--input" help:"should get a string from regex-cli"`
+ Editor *EmptyCmd `arg:"subcommand:editor" help:"open env EDITOR"`
ImportFile string `arg:"--import" help:"import a file from regex-cli"`
Stats []string `arg:"--stats" help:"add stats to a chat"`
NewChat []string `arg:"--new-chat" help:"create a new chat"`
diff --git a/argvAutoshell.go b/argvAutoshell.go
index bc97af2..54549c3 100644
--- a/argvAutoshell.go
+++ b/argvAutoshell.go
@@ -30,7 +30,7 @@ func (args) doBashAuto() {
default:
if argv.BashAuto[0] == ARGNAME {
// list the subcommands here
- fmt.Println("--add format playback")
+ fmt.Println("--add format playback editor")
}
}
os.Exit(0)
diff --git a/main.go b/main.go
index 8b23de3..0e34bbf 100644
--- a/main.go
+++ b/main.go
@@ -58,6 +58,11 @@ func main() {
okExit("")
}
+ if argv.Editor != nil {
+ // doEditor()
+ okExit("")
+ }
+
if argv.NewChat != nil {
doNewChat()
okExit("")
diff --git a/regex b/regex
deleted file mode 100755
index 23d3f22..0000000
--- a/regex
+++ /dev/null
Binary files differ