Phase 2: 简单命令信封改造 — put/get/has/hash/verify/list #70
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?
Parent: #67
Depends: Phase 1
Scope
改造以下命令输出为
{ type, value }信封:put <type> <file>@output/putstring(hash)get <hash>@output/get{ type, payload, timestamp }has <hash>@output/hasbooleanhash <type> <file>@output/hashstring(hash)verify <hash>@output/verifystring("ok"/"corrupted"/"invalid")list --type <hash>@output/liststring[](hashes)新增
list命令ucas list --type <hash-or-alias>— 列出指定类型的所有 node hashschema list(用ucas list --type @schema)verify 增强
schema validate功能Verification
{ type, value }JSONucas put ... | ucas render -p管道可工作ucas list --type @schema能列出所有 schemaRef
Implements Phase 2 of #67