(appVersion string, cfg config.IConfig)
| 17 | ) |
| 18 | |
| 19 | func New(appVersion string, cfg config.IConfig) *cmdutil.Factory { |
| 20 | f := &cmdutil.Factory{ |
| 21 | Config: cfg, |
| 22 | ExecutableName: "gh", |
| 23 | } |
| 24 | f.IOStreams = ioStreams(f) |
| 25 | f.SearchClient = searchClient(f, appVersion) |
| 26 | f.CrawlerClient = crawlerClient(f) |
| 27 | f.CompositionClient = compositionClient(f, appVersion) |
| 28 | |
| 29 | return f |
| 30 | } |
| 31 | |
| 32 | func ioStreams(_ *cmdutil.Factory) *iostreams.IOStreams { |
| 33 | io := iostreams.System() |
no test coverage detected