isPluginCommand checks if a command is from a plugin by looking for the plugin signature in the Long description
(cmd *cobra.Command)
| 154 | |
| 155 | // isPluginCommand checks if a command is from a plugin by looking for the plugin signature in the Long description |
| 156 | func isPluginCommand(cmd *cobra.Command) bool { |
| 157 | return strings.Contains(cmd.Long, "Provided by plugin:") |
| 158 | } |
| 159 | |
| 160 | // processFinalDocument cleans up the final document by removing excessive newlines and headers. |
| 161 | func processFinalDocument(content string) string { |
no outgoing calls
no test coverage detected