(f *pflag.Flag, osType string)
| 744 | } |
| 745 | |
| 746 | func isOSTypeSupported(f *pflag.Flag, osType string) bool { |
| 747 | if v := getFlagAnnotation(f, "ostype"); v != "" && osType != "" { |
| 748 | return osType == v |
| 749 | } |
| 750 | return true |
| 751 | } |
| 752 | |
| 753 | // hasTags return true if any of the command's parents has tags |
| 754 | func hasTags(cmd *cobra.Command) bool { |
no test coverage detected
searching dependent graphs…