kaspiana / mage

A command-line tool for cataloguing images (particularly digital art), styled after Git.
0 stars 0 forks source link

Document sources #9

Closed kaspiana closed 3 months ago

kaspiana commented 3 months ago

It should be possible to add source links to documents, which denote whence they originated. For redundancy, a document can have multiple sources, to avoid the document become untraceable if a source link dies.

The DB already contains tables to support this. It simply needs to be integrated into the Archive class and CLI.


mage doc ./0 source "https://example.com/resource/kitten.png" # add source
mage doc ./0 unsource "http://deprecated-site.com/kitty.jpeg" # remove source
mage doc ./0 sources # list all sources