Init command (#5348)

* Init command

* More tests + check empty dir

* Move function from catalog to service package

* Interactive asks lang + type

* Interactive

* Refactor catalog package with interface

* Add mocks for catalog and init/asker

* Add tests

* Create sub-packages for init + starter project

* Rename files in pkg/catalog

* More validations

* fix

* Logs

* Rollback

* Go back and No starter

* Review

* Use filesystem.Filesystem in pkg/catalog

* Change pull from registry strategy

* More unit tests

* More tests

* Integration tests

* Review

* Use full path to fix problem with Unzip

* Add integration test for devfile with parent URI

* Add prefClient dependence to catalog package

* Move function to pkg/init package

* Review

* Fix rebase

* Review
This commit is contained in:
Philippe Martin
2022-02-01 10:48:54 +01:00
committed by GitHub
parent bf906ffca4
commit b75fa552ce
100 changed files with 7372 additions and 302 deletions

View File

@@ -39,6 +39,27 @@ mockgen -source=pkg/preference/preference.go \
-package preference \
-destination pkg/preference/mock.go
mockgen -source=pkg/auth/interface.go \
-package auth \
-destination pkg/auth/mock.go
mockgen -source=pkg/odo/cli/init/params/interface.go \
-package params \
-destination pkg/odo/cli/init/params/mock.go
mockgen -source=pkg/catalog/interface.go \
-package catalog \
-destination pkg/catalog/mock_catalog.go
mockgen -source=pkg/odo/cli/init/asker/interface.go \
-package asker \
-destination pkg/odo/cli/init/asker/mock.go
mockgen -source=pkg/init/interface.go \
-package init \
-destination pkg/init/mock.go
mockgen -source=pkg/init/registry/interface.go \
-package registry \
-destination pkg/init/registry/mock.go