(cmd *cobra.Command)
| 506 | } |
| 507 | |
| 508 | func commandManifestDestructiveLevel(cmd *cobra.Command) string { |
| 509 | if levels := commandAnnotationList(cmd, commandDestructiveLevelAnnotation); len(levels) > 0 { |
| 510 | return levels[0] |
| 511 | } |
| 512 | return destructiveLevelNone |
| 513 | } |
| 514 | |
| 515 | func commandAnnotationList(cmd *cobra.Command, key string) []string { |
| 516 | if cmd == nil || cmd.Annotations == nil { |
no test coverage detected