something new
This commit is contained in:
parent
126495ff38
commit
eceb945b9c
2
Makefile
2
Makefile
|
@ -49,4 +49,4 @@ identify-protobuf:
|
||||||
|
|
||||||
playback:
|
playback:
|
||||||
gemini playback
|
gemini playback
|
||||||
gemini playback --uuid a1b2c3d4-e5f6-4a5b-8c9d-1e2f3a4b5c6d
|
# gemini playback --uuid a1b2c3d4-e5f6-4a5b-8c9d-1e2f3a4b5c6d
|
||||||
|
|
6
argv.go
6
argv.go
|
@ -23,9 +23,9 @@ type EmptyCmd struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type PlaybackCmd struct {
|
type PlaybackCmd struct {
|
||||||
List *EmptyCmd `arg:"subcommand:list" help:"list memories"`
|
List *EmptyCmd `arg:"subcommand:list" help:"list memories"`
|
||||||
Force bool `arg:"--all" help:"try to strong arm things"`
|
Long *EmptyCmd `arg:"subcommand:long" help:"show info on each chat"`
|
||||||
Uuid string `arg:"--uuid" help:"look at this uuid"`
|
Uuid string `arg:"--uuid" help:"look at this uuid"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (args) Version() string {
|
func (args) Version() string {
|
||||||
|
|
|
@ -24,7 +24,7 @@ func (args) doBashAuto() {
|
||||||
argv.doBashHelp()
|
argv.doBashHelp()
|
||||||
switch argv.BashAuto[0] {
|
switch argv.BashAuto[0] {
|
||||||
case "playback":
|
case "playback":
|
||||||
fmt.Println("list --uuid")
|
fmt.Println("long --uuid")
|
||||||
case "clean":
|
case "clean":
|
||||||
fmt.Println("user devel master")
|
fmt.Println("user devel master")
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -46,6 +46,13 @@ func listChats(chats *chatpb.Chats) {
|
||||||
formattedTime,
|
formattedTime,
|
||||||
chat.GetUuid(),
|
chat.GetUuid(),
|
||||||
)
|
)
|
||||||
|
if argv.Playback.Long != nil {
|
||||||
|
listEntries(chat)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fmt.Println("-------------------------------------------------")
|
fmt.Println("-------------------------------------------------")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// print out one line for each chat entry
|
||||||
|
func listEntries(chat *chatpb.Chat) {
|
||||||
|
}
|
||||||
|
|
6
main.go
6
main.go
|
@ -58,13 +58,13 @@ func main() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
badExit(err)
|
badExit(err)
|
||||||
}
|
}
|
||||||
|
verifyUuids(newChats)
|
||||||
|
|
||||||
for _, newChat := range newChats.GetChats() {
|
for _, newChat := range newChats.GetChats() {
|
||||||
me.chats.AppendByUuid(newChat)
|
me.chats.AppendByUuid(newChat)
|
||||||
}
|
}
|
||||||
|
|
||||||
if verifyUuids(me.chats) {
|
me.chats.ConfigSave()
|
||||||
me.chats.ConfigSave()
|
|
||||||
}
|
|
||||||
okExit("")
|
okExit("")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue