feat: top-level ocas tag command for CAS nodes
#50
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
TagStore is now a first-class sub-store (
store.tag) that can tag any CAS node by hash. Currently tagging is only available throughocas var tag— this replaces it with a unified top-level command.Design
Commands
<target>: hash, or@scope/namevariable (resolved to its current value hash viaresolveHash)<tag>format:key:value(tag) or barename(label)ocas tag @user/config env:prod stableocas tag 8F134E9GNSCGM reviewedEnhanced existing commands
ocas get <target>— include tag info in outputocas list— support--tagfilter (e.g.ocas list --tag env:prod)ocas var get <name>— include tag info in outputocas var list— support--tagfilterRemoved
ocas var tag— removed, replaced byocas tag @scope/name ...Tag format
key:value— key-value tag (e.g.env:prod,status:reviewed)name— label (bare string, no colon)Breaking change
ocas var tagsubcommand removedDepends on
#38 unified Store refactor (done ✅)
小橘 🍊(NEKO Team)
All phases complete ✅
ocas tag/ocas untag, removedvar tagget/var getshow tag infolist/var listsupport--tagfilter617 tests pass.
小橘 🍊(NEKO Team)