(cmd *cobra.Command, confUI *ui.ConfUI, opts cmdcore.PackageCommandTreeOpts)
| 226 | } |
| 227 | |
| 228 | func AttachKctrlPackageCommandTree(cmd *cobra.Command, confUI *ui.ConfUI, opts cmdcore.PackageCommandTreeOpts) { |
| 229 | configFactory := cmdcore.NewConfigFactoryImpl() |
| 230 | depsFactory := cmdcore.NewDepsFactoryImpl(configFactory, confUI) |
| 231 | options := NewKctrlOptions(confUI, configFactory, depsFactory) |
| 232 | flagsFactory := cmdcore.NewFlagsFactory(configFactory, depsFactory) |
| 233 | |
| 234 | AddPackageCommands(options, cmd, flagsFactory, opts) |
| 235 | AttachGlobalFlags(options, cmd, flagsFactory, opts) |
| 236 | } |
| 237 | |
| 238 | type uiBlockWriter struct { |
| 239 | ui ui.UI |
nothing calls this directly
no test coverage detected