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 Binary files a/regex and /dev/null differ