code: func hasTags(cmd *cobra.Command) bool {
  	for curr := cmd; curr != nil; curr = curr.Parent() {
  		if len(curr.Annotations) > 0 {
  			return true
  		}
  	}
  
  	return false
  }
docs: // hasTags return true if any of the command's parents has tags