1
0
Fork 0
mirror of https://git.sr.ht/~phw/scotty synced 2025-05-14 20:07:04 +02:00

Implemented "beam --timestamp {n}"

This commit is contained in:
Philipp Wolfer 2023-11-13 19:11:19 +01:00
parent 4d18a207ee
commit 27685d617a
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
4 changed files with 11 additions and 2 deletions

View file

@ -43,7 +43,7 @@ var listensCmd = &cobra.Command{
cobra.CheckErr(err)
importBackend, err := backends.ResolveBackend[models.ListensImport](targetConfig)
cobra.CheckErr(err)
timestamp := time.Unix(0, 0)
timestamp := time.Unix(getInt64FromFlag(cmd, "timestamp"), 0)
listens, err := exportBackend.ExportListens(timestamp)
cobra.CheckErr(err)
result, err := importBackend.ImportListens(listens, timestamp)