From 845038120ec3832a4fe16e74c052043a4a0e9b7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20H=C3=A5rek=20Andreassen?= Date: Fri, 4 Oct 2024 21:05:21 +0200 Subject: [PATCH] refactor: Move met and nominatim to ./pkg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tim HĂ„rek Andreassen --- cmd/forecast_helper.go | 2 +- cmd/tomorrow.go | 2 +- {internal => pkg}/met/met.go | 0 {internal => pkg}/met/met_test.go | 0 {internal => pkg}/met/types.go | 0 {internal => pkg}/nominatim/nominatim.go | 0 {internal => pkg}/nominatim/nominatim_test.go | 0 {internal => pkg}/nominatim/types.go | 0 yr/yr.go | 4 ++-- 9 files changed, 4 insertions(+), 4 deletions(-) rename {internal => pkg}/met/met.go (100%) rename {internal => pkg}/met/met_test.go (100%) rename {internal => pkg}/met/types.go (100%) rename {internal => pkg}/nominatim/nominatim.go (100%) rename {internal => pkg}/nominatim/nominatim_test.go (100%) rename {internal => pkg}/nominatim/types.go (100%) diff --git a/cmd/forecast_helper.go b/cmd/forecast_helper.go index f83ac1d..9a496ca 100644 --- a/cmd/forecast_helper.go +++ b/cmd/forecast_helper.go @@ -6,7 +6,7 @@ import ( "os" "git.sr.ht/~timharek/yr/cmd/flags" - "git.sr.ht/~timharek/yr/internal/nominatim" + "git.sr.ht/~timharek/yr/pkg/nominatim" "git.sr.ht/~timharek/yr/yr" "github.com/pkg/browser" "github.com/spf13/cobra" diff --git a/cmd/tomorrow.go b/cmd/tomorrow.go index 6a69bec..da94558 100644 --- a/cmd/tomorrow.go +++ b/cmd/tomorrow.go @@ -8,7 +8,7 @@ import ( "git.sr.ht/~timharek/yr/cmd/flags" "git.sr.ht/~timharek/yr/cmd/internal/ui/table" - "git.sr.ht/~timharek/yr/internal/nominatim" + "git.sr.ht/~timharek/yr/pkg/nominatim" "git.sr.ht/~timharek/yr/yr" "github.com/pkg/browser" "github.com/spf13/cobra" diff --git a/internal/met/met.go b/pkg/met/met.go similarity index 100% rename from internal/met/met.go rename to pkg/met/met.go diff --git a/internal/met/met_test.go b/pkg/met/met_test.go similarity index 100% rename from internal/met/met_test.go rename to pkg/met/met_test.go diff --git a/internal/met/types.go b/pkg/met/types.go similarity index 100% rename from internal/met/types.go rename to pkg/met/types.go diff --git a/internal/nominatim/nominatim.go b/pkg/nominatim/nominatim.go similarity index 100% rename from internal/nominatim/nominatim.go rename to pkg/nominatim/nominatim.go diff --git a/internal/nominatim/nominatim_test.go b/pkg/nominatim/nominatim_test.go similarity index 100% rename from internal/nominatim/nominatim_test.go rename to pkg/nominatim/nominatim_test.go diff --git a/internal/nominatim/types.go b/pkg/nominatim/types.go similarity index 100% rename from internal/nominatim/types.go rename to pkg/nominatim/types.go diff --git a/yr/yr.go b/yr/yr.go index f97c9d8..589cca4 100644 --- a/yr/yr.go +++ b/yr/yr.go @@ -6,8 +6,8 @@ import ( "slices" "time" - "git.sr.ht/~timharek/yr/internal/met" - "git.sr.ht/~timharek/yr/internal/nominatim" + "git.sr.ht/~timharek/yr/pkg/met" + "git.sr.ht/~timharek/yr/pkg/nominatim" "git.sr.ht/~timharek/yr/yr/direction" )