1 package main 2 3 import ( 4 "github.com/flynn/go-docopt" 5 "github.com/theupdateframework/go-tuf" 6 ) 7 8 func init() { 9 register("sign", cmdSign, ` 10 usage: tuf sign <metadata> 11 12 Sign a role's metadata file. 13 14 Signs the given role's staged metadata file with all keys present in the 'keys' 15 directory for that role. 16 `) 17 } 18 19 func cmdSign(args *docopt.Args, repo *tuf.Repo) error { 20 return repo.Sign(args.String["<metadata>"]) 21 } 22