Closed ruojunm closed 10 months ago
The set-tag subcommand should be for gnfd-cmd bucket/object/group
, not for gnfd-cmd
. The correct format is 'gnfd-cmd bucket set-tags --tags='[{"Key":"0","value":"value1"},{"key":"key2","value":"0"}]' gnfd://clyde-test-3'.
Description
feat: add tags for bucket/object/group and support SetTags tx
Rationale
Greenfield v1.2.0 will introduce tags fields for bucket/object/group entities and also has a SetTags API to set tags for existing bucket/object/group
Example
Create a bucket with tags
Create an object with tags
Create a group with tags
Set tags for existing bucket
Set tags for existing object
Set tags for existing group
head object/bucket/group
Changes
Notable changes:
./gnfd-cmd bucket/object/group setTag
cmd to send SetTag message to greenfield chain.