From a0ff16465d7289658a75c057be365c0e5132d0e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20H=C3=A5rek=20Andreassen?= Date: Thu, 3 Oct 2024 18:53:14 +0200 Subject: [PATCH] refactor: Rename module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tim HĂ„rek Andreassen --- cmd/forecast.go | 6 +++--- cmd/now.go | 6 +++--- cmd/root.go | 2 +- go.mod | 2 +- main.go | 2 +- yr/yr.go | 8 ++++---- yr/yr_test.go | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/cmd/forecast.go b/cmd/forecast.go index 18acd9b..371696d 100644 --- a/cmd/forecast.go +++ b/cmd/forecast.go @@ -6,9 +6,9 @@ import ( "os" "time" - "git.sr.ht/~timharek/yr-go/cmd/flags" - "git.sr.ht/~timharek/yr-go/internal/nominatim" - "git.sr.ht/~timharek/yr-go/yr" + "git.sr.ht/~timharek/yr/cmd/flags" + "git.sr.ht/~timharek/yr/internal/nominatim" + "git.sr.ht/~timharek/yr/yr" "github.com/charmbracelet/lipgloss" "github.com/charmbracelet/lipgloss/table" "github.com/pkg/browser" diff --git a/cmd/now.go b/cmd/now.go index 2822031..9cbb298 100644 --- a/cmd/now.go +++ b/cmd/now.go @@ -6,9 +6,9 @@ import ( "os" "time" - "git.sr.ht/~timharek/yr-go/cmd/flags" - "git.sr.ht/~timharek/yr-go/internal/nominatim" - "git.sr.ht/~timharek/yr-go/yr" + "git.sr.ht/~timharek/yr/cmd/flags" + "git.sr.ht/~timharek/yr/internal/nominatim" + "git.sr.ht/~timharek/yr/yr" "github.com/pkg/browser" "github.com/spf13/cobra" ) diff --git a/cmd/root.go b/cmd/root.go index f8b7c08..2486bdd 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -3,7 +3,7 @@ package cmd import ( "os" - "git.sr.ht/~timharek/yr-go/cmd/flags" + "git.sr.ht/~timharek/yr/cmd/flags" "github.com/spf13/cobra" ) diff --git a/go.mod b/go.mod index dabd9c8..d314675 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.sr.ht/~timharek/yr-go +module git.sr.ht/~timharek/yr go 1.23.1 diff --git a/main.go b/main.go index 91cc976..75b3d33 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,6 @@ package main -import "git.sr.ht/~timharek/yr-go/cmd" +import "git.sr.ht/~timharek/yr/cmd" func main() { cmd.Execute() diff --git a/yr/yr.go b/yr/yr.go index 6bf9319..f97c9d8 100644 --- a/yr/yr.go +++ b/yr/yr.go @@ -6,9 +6,9 @@ import ( "slices" "time" - "git.sr.ht/~timharek/yr-go/internal/met" - "git.sr.ht/~timharek/yr-go/internal/nominatim" - "git.sr.ht/~timharek/yr-go/yr/direction" + "git.sr.ht/~timharek/yr/internal/met" + "git.sr.ht/~timharek/yr/internal/nominatim" + "git.sr.ht/~timharek/yr/yr/direction" ) type Client struct { @@ -17,7 +17,7 @@ type Client struct { } func New() (*Client, error) { - siteName := "git.sr.ht/~timharek/yr-go" + siteName := "git.sr.ht/~timharek/yr" met, err := met.New(siteName) if err != nil { return nil, err diff --git a/yr/yr_test.go b/yr/yr_test.go index 3f0d40e..85afec7 100644 --- a/yr/yr_test.go +++ b/yr/yr_test.go @@ -3,7 +3,7 @@ package yr import ( "testing" - "git.sr.ht/~timharek/yr-go/yr/direction" + "git.sr.ht/~timharek/yr/yr/direction" "github.com/stretchr/testify/assert" )