(cmd *cobra.Command, modes ...string)
| 473 | } |
| 474 | |
| 475 | func setCommandAuthModes(cmd *cobra.Command, modes ...string) { |
| 476 | setCommandAnnotationList(cmd, commandAuthModesAnnotation, modes) |
| 477 | } |
| 478 | |
| 479 | func setCommandDestructiveLevel(cmd *cobra.Command, level string) { |
| 480 | setCommandAnnotationList(cmd, commandDestructiveLevelAnnotation, []string{level}) |