Bug
When using blaze edit <id> --tag foo --tag bar, the tags are appended to existing tags rather than replacing them.
Steps to Reproduce
- Create a card with tags:
blaze add "Test" --tag old-tag
- Edit to change tags:
blaze edit <id> --tag new-tag
- Check the result:
blaze show <id> -o json | jq '.tags'
Expected Behavior
Tags should be replaced, or there should be explicit --tag +add / --tag -remove syntax for incremental changes.
Actual Behavior
Tags accumulate. Example result after multiple edits:
["blaze", "nostr,infrastructure", "nostr", "infrastructure"]
Also note that --tag nostr,infrastructure was treated as a single tag string rather than two separate tags.
Suggested Fix
Either:
- Make
--tag replace all tags (simpler)
- Add
--tag +foo to add and --tag -foo to remove (more flexible)
- Add
--clear-tags flag to reset before adding
Bug
When using
blaze edit <id> --tag foo --tag bar, the tags are appended to existing tags rather than replacing them.Steps to Reproduce
blaze add "Test" --tag old-tagblaze edit <id> --tag new-tagblaze show <id> -o json | jq '.tags'Expected Behavior
Tags should be replaced, or there should be explicit
--tag +add/--tag -removesyntax for incremental changes.Actual Behavior
Tags accumulate. Example result after multiple edits:
Also note that
--tag nostr,infrastructurewas treated as a single tag string rather than two separate tags.Suggested Fix
Either:
--tagreplace all tags (simpler)--tag +footo add and--tag -footo remove (more flexible)--clear-tagsflag to reset before adding