diff --git a/clients/go/camput/camput.go b/clients/go/camput/camput.go index 9066092f6..7fcda7dbe 100644 --- a/clients/go/camput/camput.go +++ b/clients/go/camput/camput.go @@ -41,6 +41,7 @@ var flagShare = flag.Bool("share", false, "create a camli share by haveref with var flagTransitive = flag.Bool("transitive", true, "share the transitive closure of the given blobrefs") var flagRemove = flag.Bool("remove", false, "remove the list of blobrefs") var flagName = flag.String("name", "", "Optional name attribute to set on permanode when using -permanode and -file") +var flagTag = flag.String("tag", "", "Optional tag attribute to set on permanode when using -permanode and -file") var flagVerbose = flag.Bool("verbose", false, "be verbose") var flagSetAttr = flag.Bool("set-attr", false, "set (replace) an attribute") @@ -300,6 +301,10 @@ func main() { put, err := up.UploadAndSignMap(schema.NewSetAttributeClaim(permaNode.BlobRef, "name", *flagName)) handleResult("claim-permanode-name", put, err) } + if *flagTag != "" { + put, err := up.UploadAndSignMap(schema.NewSetAttributeClaim(permaNode.BlobRef, "camliTag", *flagTag)) + handleResult("claim-permanode-tag", put, err) + } handleResult("permanode", permaNode, nil) } case *flagPermanode: