(pluginNameOrPath string)
| 88 | } |
| 89 | |
| 90 | func normalizePluginPath(pluginNameOrPath string) (string, error) { |
| 91 | parts := strings.Split(pluginNameOrPath, "/") |
| 92 | if len(parts) == 1 { |
| 93 | return "cloudquery/" + pluginNameOrPath, nil |
| 94 | } |
| 95 | if len(parts) != 2 { |
| 96 | return "", errors.New("invalid plugin path") |
| 97 | } |
| 98 | return pluginNameOrPath, nil |
| 99 | } |
| 100 | |
| 101 | func parseFlags(cmd *cobra.Command) (source, destination, specPath string, acceptDefaults, disableAI, resumeConversation, disablePlatform bool, allErrors error) { |
| 102 | source, err := cmd.Flags().GetString("source") |
no outgoing calls
no test coverage detected