feat: update module path

- modify go.mod to reflect the new module path
- update config file path in the main function
- adjust import statements in various internal packages
- add install instructions to README

🤖
This commit is contained in:
Sebastian Mark 2024-10-23 17:59:46 +02:00
parent d83946e255
commit 064056e8cb
8 changed files with 14 additions and 10 deletions

View file

@ -5,7 +5,7 @@ package main
// - add controls
import (
"ChronoTomato/cmd/client"
"git.smsvc.net/pomodoro/ChronoTomato/cmd/client"
)
func main() {

View file

@ -2,6 +2,10 @@
A GoTomato command line client written in Go
## Installation
`go install git.smsvc.net/pomodoro/ChronoTomato@latest`
## Configuration
`ChronoTomato` can be configured via CLI parameters or a config file.

View file

@ -5,9 +5,9 @@ import (
"os"
"os/signal"
"ChronoTomato/internal/helper"
"ChronoTomato/internal/shared"
"ChronoTomato/internal/websocket"
"git.smsvc.net/pomodoro/ChronoTomato/internal/helper"
"git.smsvc.net/pomodoro/ChronoTomato/internal/shared"
"git.smsvc.net/pomodoro/ChronoTomato/internal/websocket"
"atomicgo.dev/keyboard"
"atomicgo.dev/keyboard/keys"

2
go.mod
View file

@ -1,4 +1,4 @@
module ChronoTomato
module git.smsvc.net/pomodoro/ChronoTomato
go 1.23.1

View file

@ -1,7 +1,7 @@
package helper
import (
"ChronoTomato/pkg/models"
"git.smsvc.net/pomodoro/ChronoTomato/pkg/models"
"github.com/charmbracelet/log"
"gopkg.in/yaml.v2"
"os"

View file

@ -1,7 +1,7 @@
package notifications
import (
"ChronoTomato/internal/shared"
"git.smsvc.net/pomodoro/ChronoTomato/internal/shared"
"fmt"
"github.com/gen2brain/beeep"
)

View file

@ -1,7 +1,7 @@
package notifications
import (
"ChronoTomato/internal/shared"
"git.smsvc.net/pomodoro/ChronoTomato/internal/shared"
"atomicgo.dev/cursor"
"fmt"
"github.com/fatih/color"

View file

@ -1,8 +1,8 @@
package websocket
import (
"ChronoTomato/internal/notifications"
"ChronoTomato/internal/shared"
"git.smsvc.net/pomodoro/ChronoTomato/internal/notifications"
"git.smsvc.net/pomodoro/ChronoTomato/internal/shared"
"encoding/json"
"fmt"
"github.com/charmbracelet/log"