[PR #557] [CLOSED] feat: add cli option to read note from stdin #1651

Closed
opened 2026-03-02 11:58:34 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karakeep-app/karakeep/pull/557
Author: @lippoliv
Created: 10/17/2024
Status: Closed

Base: mainHead: cli/update-note-from-stdin


📝 Commits (2)

  • dea8891 feat: add option to read note from stdin
  • c28e661 stop users from using "--note" and "--stdin" at the same time

📊 Changes

1 file changed (+14 additions, -1 deletions)

View changed files

📝 apps/cli/src/commands/bookmarks.ts (+14 -1)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/karakeep-app/karakeep/pull/557 **Author:** [@lippoliv](https://github.com/lippoliv) **Created:** 10/17/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `cli/update-note-from-stdin` --- ### 📝 Commits (2) - [`dea8891`](https://github.com/karakeep-app/karakeep/commit/dea889105bafa13da0bd93da2da0fbf0cf287cbf) feat: add option to read note from stdin - [`c28e661`](https://github.com/karakeep-app/karakeep/commit/c28e661fd279175db97b73aabcc83e8ffd477455) stop users from using "--note" and "--stdin" at the same time ### 📊 Changes **1 file changed** (+14 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `apps/cli/src/commands/bookmarks.ts` (+14 -1) </details> ### 📄 Description 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 11:58:34 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#1651
No description provided.