Skip to content

Get timestamp of last sync #137

@OpenBagTwo

Description

@OpenBagTwo

GIVEN Steve has multiple computers between which he syncs his Minecraft (and other) data
AND some of these computers spend time offline / off the network (where they can't be synced automatically after each use)
WHEN he's trying to remember if he synced his data from his Steam Deck when he got home
AND he runs the command enderchest history:
THEN he sees records with timestamps for the last ten[1] sync operations and from where they originated, e.g.

  • From his desktop:
    2024-05-20 12:33 EDT Desktop < Steam Deck
    2024-05-20 08:00 EDT Desktop > Steam Deck
    2024-05-19 21:59 EDT Desktop > Couch Gaming, NAS
    ...
    
  • From his Steam Deck:
    2024-05-20 12:33 EDT Steam Deck > Desktop, Couch Gaming, NAS
    2024-05-20 08:00 EDT Steam Deck < Desktop
    2024-05-18 16:27 EDT Steam Deck > Desktop, Couch Gaming, NAS, Laptop
    ...
    

corresponding to the following four operations:

  1. 5/18 at 4:27pm ran enderchest close from the Steam Deck (laptop was online)
  2. 5/19 at 9:59pm ran enderchest close from the desktop (laptop was offline)
  3. 5/20 at 8am ran enderchest open from the Steam Deck
  4. 5/20 at 12:33pm ran enderchest close from the Steam Deck (laptop was offline)

SO he can easily tell whether there was a sync performed after he got home, regardless of whether it originated from the desktop or from the Steam Deck, and regardless of whether any files were actually transferred

Notes

  1. ten should be the default, but should be configurable via the -n flag (e.g. -n3 to just get the last three)
  2. this default should also be settable via the enderchest config

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions