MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840)
* Generate and use an interface instead of *App
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
66fc096768
Коммит
17523fa5d9
4
Makefile
4
Makefile
@@ -202,6 +202,10 @@ ifneq ($(MM_NO_ENTERPRISE_LINT),true)
|
||||
endif
|
||||
endif
|
||||
|
||||
app-layers: ## Extract interface from App struct
|
||||
env GO111MODULE=off $(GO) get -u github.com/reflog/struct2interface
|
||||
$(GOBIN)/struct2interface -f "app" -o "app/app_iface.go" -p "app" -s "App" -i "AppIface" -t ./app/layer_generators/app_iface.go.tmpl
|
||||
|
||||
i18n-extract: ## Extract strings for translation from the source code
|
||||
env GO111MODULE=off $(GO) get -u github.com/mattermost/mattermost-utilities/mmgotool
|
||||
$(GOBIN)/mmgotool i18n extract
|
||||
|
||||
Ссылка в новой задаче
Block a user