| 189 | } |
| 190 | |
| 191 | func configForSourcePlugin(source cqapi.ListPlugin, version *cqapi.PluginVersionDetails) string { |
| 192 | exampleConfig := extractYamlFromMarkdownCodeBlock(version.ExampleConfig) |
| 193 | if exampleConfig != "" { |
| 194 | return exampleConfig |
| 195 | } |
| 196 | |
| 197 | defaultConfig := defaultConfigForPlugin(source) |
| 198 | defaultConfig.WriteString(" tables: ['*']\n") |
| 199 | defaultConfig.WriteString(" destinations: ['DESTINATION_NAME']") |
| 200 | return defaultConfig.String() |
| 201 | } |
| 202 | |
| 203 | func configForDestinationPlugin(destination cqapi.ListPlugin, version *cqapi.PluginVersionDetails) string { |
| 204 | exampleConfig := extractYamlFromMarkdownCodeBlock(version.ExampleConfig) |