(cmd *cobra.Command)
| 149 | } |
| 150 | |
| 151 | func jsonCommandWarnings(cmd *cobra.Command) []jsonWarning { |
| 152 | if cmd == nil || cmd.Deprecated == "" { |
| 153 | return emptyJSONWarnings() |
| 154 | } |
| 155 | return []jsonWarning{{ |
| 156 | Code: jsonWarningCodeDeprecatedCommand, |
| 157 | Message: cmd.Deprecated, |
| 158 | }} |
| 159 | } |
| 160 | |
| 161 | func jsonCommandPath(cmd *cobra.Command) string { |
| 162 | if cmd == nil { |
no test coverage detected