test
This commit is contained in:
parent
0b2ec9ce15
commit
a813b2e206
1
argv.go
1
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"`
|
||||
|
|
|
@ -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)
|
||||
|
|
5
main.go
5
main.go
|
@ -58,6 +58,11 @@ func main() {
|
|||
okExit("")
|
||||
}
|
||||
|
||||
if argv.Editor != nil {
|
||||
// doEditor()
|
||||
okExit("")
|
||||
}
|
||||
|
||||
if argv.NewChat != nil {
|
||||
doNewChat()
|
||||
okExit("")
|
||||
|
|
Loading…
Reference in New Issue