hoarder-app / hoarder

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
https://hoarder.app
GNU Affero General Public License v3.0
6.63k stars 240 forks source link

feat: add cli option to read note from stdin #557

Open lippoliv opened 1 month ago

lippoliv commented 1 month ago

This PR adds the CLI option --stdin that works like it is implemented in the add command: Instead of from --note <NOTE> the note's content is read from stdin.

This way something like cat some-long-note.txt | hoarder bookmarks update --stdin <ID> can work