(f *cmdutil.Factory)
| 73 | } |
| 74 | |
| 75 | func crawlerClient(f *cmdutil.Factory) func() (*crawler.Client, error) { |
| 76 | return func() (*crawler.Client, error) { |
| 77 | userID, err := f.Config.Profile().GetCrawlerUserID() |
| 78 | if err != nil { |
| 79 | return nil, err |
| 80 | } |
| 81 | APIKey, err := f.Config.Profile().GetCrawlerAPIKey() |
| 82 | if err != nil { |
| 83 | return nil, err |
| 84 | } |
| 85 | |
| 86 | return crawler.NewClient(userID, APIKey), nil |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | func compositionClient(f *cmdutil.Factory, appVersion string) func() (*composition.APIClient, error) { |
| 91 | return func() (*composition.APIClient, error) { |
no test coverage detected