From d541df24cb2d8757c052b634c5323646adb1cabb Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Mon, 30 Sep 2024 19:19:36 +0100 Subject: [PATCH] chore_: move/rename files messing generation (#5897) * refactor_: rename migrations file * refactor_: move generate_handlers to cmd * fix_: makefile generate_handlers path --- Makefile | 4 ++-- {_assets => cmd}/generate_handlers/generate_handlers.go | 0 .../generate_handlers/generate_handlers_template.txt | 0 protocol/sqlite/{migrations.go => prepare_migrations.go} | 0 .../sqlite/{migrations_test.go => prepare_migrations_test.go} | 0 5 files changed, 2 insertions(+), 2 deletions(-) rename {_assets => cmd}/generate_handlers/generate_handlers.go (100%) rename {_assets => cmd}/generate_handlers/generate_handlers_template.txt (100%) rename protocol/sqlite/{migrations.go => prepare_migrations.go} (100%) rename protocol/sqlite/{migrations_test.go => prepare_migrations_test.go} (100%) diff --git a/Makefile b/Makefile index 4d4f056ec..104472d36 100644 --- a/Makefile +++ b/Makefile @@ -313,9 +313,9 @@ setup-dev: echo "Replaced by Nix shell. Use 'make shell' or just any target as-is." generate-handlers: - go generate ./_assets/generate_handlers/ + go generate ./cmd/generate_handlers/ generate: ##@other Regenerate assets and other auto-generated stuff - go generate ./static ./static/mailserver_db_migrations ./t ./multiaccounts/... ./appdatabase/... ./protocol/... ./walletdatabase/... ./_assets/generate_handlers + go generate ./static ./static/mailserver_db_migrations ./t ./multiaccounts/... ./appdatabase/... ./protocol/... ./walletdatabase/... ./cmd/generate_handlers generate-appdatabase: go generate ./appdatabase/... diff --git a/_assets/generate_handlers/generate_handlers.go b/cmd/generate_handlers/generate_handlers.go similarity index 100% rename from _assets/generate_handlers/generate_handlers.go rename to cmd/generate_handlers/generate_handlers.go diff --git a/_assets/generate_handlers/generate_handlers_template.txt b/cmd/generate_handlers/generate_handlers_template.txt similarity index 100% rename from _assets/generate_handlers/generate_handlers_template.txt rename to cmd/generate_handlers/generate_handlers_template.txt diff --git a/protocol/sqlite/migrations.go b/protocol/sqlite/prepare_migrations.go similarity index 100% rename from protocol/sqlite/migrations.go rename to protocol/sqlite/prepare_migrations.go diff --git a/protocol/sqlite/migrations_test.go b/protocol/sqlite/prepare_migrations_test.go similarity index 100% rename from protocol/sqlite/migrations_test.go rename to protocol/sqlite/prepare_migrations_test.go