code: func signpackageCmd(cf *ChaincodeCmdFactory) *cobra.Command {
  	spCmd := &cobra.Command{
  		Use:       "signpackage",
  		Short:     "Sign the specified chaincode package",
  		Long:      "Sign the specified chaincode package",
  		ValidArgs: []string{"2"},
  		RunE: func(cmd *cobra.Command, args []string) error {
  			if len(args) < 2 {
  				return fmt.Errorf("peer chaincode signpackage <inputpackage> <outputpackage>")
  			}
  			return signpackage(cmd, args[0], args[1], cf)
  		},
  	}
  
  	return spCmd
  }
docs: // signpackageCmd returns the cobra command for signing a package