refactor: Rename module
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
parent
eda33958a8
commit
a0ff16465d
7 changed files with 14 additions and 14 deletions
|
@ -6,9 +6,9 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.sr.ht/~timharek/yr-go/cmd/flags"
|
"git.sr.ht/~timharek/yr/cmd/flags"
|
||||||
"git.sr.ht/~timharek/yr-go/internal/nominatim"
|
"git.sr.ht/~timharek/yr/internal/nominatim"
|
||||||
"git.sr.ht/~timharek/yr-go/yr"
|
"git.sr.ht/~timharek/yr/yr"
|
||||||
"github.com/charmbracelet/lipgloss"
|
"github.com/charmbracelet/lipgloss"
|
||||||
"github.com/charmbracelet/lipgloss/table"
|
"github.com/charmbracelet/lipgloss/table"
|
||||||
"github.com/pkg/browser"
|
"github.com/pkg/browser"
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.sr.ht/~timharek/yr-go/cmd/flags"
|
"git.sr.ht/~timharek/yr/cmd/flags"
|
||||||
"git.sr.ht/~timharek/yr-go/internal/nominatim"
|
"git.sr.ht/~timharek/yr/internal/nominatim"
|
||||||
"git.sr.ht/~timharek/yr-go/yr"
|
"git.sr.ht/~timharek/yr/yr"
|
||||||
"github.com/pkg/browser"
|
"github.com/pkg/browser"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,7 +3,7 @@ package cmd
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"git.sr.ht/~timharek/yr-go/cmd/flags"
|
"git.sr.ht/~timharek/yr/cmd/flags"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module git.sr.ht/~timharek/yr-go
|
module git.sr.ht/~timharek/yr
|
||||||
|
|
||||||
go 1.23.1
|
go 1.23.1
|
||||||
|
|
||||||
|
|
2
main.go
2
main.go
|
@ -1,6 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "git.sr.ht/~timharek/yr-go/cmd"
|
import "git.sr.ht/~timharek/yr/cmd"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
cmd.Execute()
|
cmd.Execute()
|
||||||
|
|
8
yr/yr.go
8
yr/yr.go
|
@ -6,9 +6,9 @@ import (
|
||||||
"slices"
|
"slices"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.sr.ht/~timharek/yr-go/internal/met"
|
"git.sr.ht/~timharek/yr/internal/met"
|
||||||
"git.sr.ht/~timharek/yr-go/internal/nominatim"
|
"git.sr.ht/~timharek/yr/internal/nominatim"
|
||||||
"git.sr.ht/~timharek/yr-go/yr/direction"
|
"git.sr.ht/~timharek/yr/yr/direction"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Client struct {
|
type Client struct {
|
||||||
|
@ -17,7 +17,7 @@ type Client struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func New() (*Client, error) {
|
func New() (*Client, error) {
|
||||||
siteName := "git.sr.ht/~timharek/yr-go"
|
siteName := "git.sr.ht/~timharek/yr"
|
||||||
met, err := met.New(siteName)
|
met, err := met.New(siteName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
@ -3,7 +3,7 @@ package yr
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.sr.ht/~timharek/yr-go/yr/direction"
|
"git.sr.ht/~timharek/yr/yr/direction"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue