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 // - add controls
import ( import (
"ChronoTomato/cmd/client" "git.smsvc.net/pomodoro/ChronoTomato/cmd/client"
) )
func main() { func main() {

View file

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

View file

@ -5,9 +5,9 @@ import (
"os" "os"
"os/signal" "os/signal"
"ChronoTomato/internal/helper" "git.smsvc.net/pomodoro/ChronoTomato/internal/helper"
"ChronoTomato/internal/shared" "git.smsvc.net/pomodoro/ChronoTomato/internal/shared"
"ChronoTomato/internal/websocket" "git.smsvc.net/pomodoro/ChronoTomato/internal/websocket"
"atomicgo.dev/keyboard" "atomicgo.dev/keyboard"
"atomicgo.dev/keyboard/keys" "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 go 1.23.1

View file

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

View file

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

View file

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

View file

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