From 064056e8cbca850d4ef7472b4e2b44a17968f413 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Wed, 23 Oct 2024 17:59:46 +0200 Subject: [PATCH] feat: update module path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 🤖 --- ChronoTomato.go | 2 +- README.md | 4 ++++ cmd/client/main.go | 6 +++--- go.mod | 2 +- internal/helper/config.go | 2 +- internal/notifications/desktop.go | 2 +- internal/notifications/terminal.go | 2 +- internal/websocket/receive.go | 4 ++-- 8 files changed, 14 insertions(+), 10 deletions(-) diff --git a/ChronoTomato.go b/ChronoTomato.go index b6f74b5..177271c 100644 --- a/ChronoTomato.go +++ b/ChronoTomato.go @@ -5,7 +5,7 @@ package main // - add controls import ( - "ChronoTomato/cmd/client" + "git.smsvc.net/pomodoro/ChronoTomato/cmd/client" ) func main() { diff --git a/README.md b/README.md index e5834b2..71b0918 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/cmd/client/main.go b/cmd/client/main.go index 63da593..3ca3118 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -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" diff --git a/go.mod b/go.mod index 2a0cb6e..f6ae2ea 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module ChronoTomato +module git.smsvc.net/pomodoro/ChronoTomato go 1.23.1 diff --git a/internal/helper/config.go b/internal/helper/config.go index 257e1d4..7497c0d 100644 --- a/internal/helper/config.go +++ b/internal/helper/config.go @@ -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" diff --git a/internal/notifications/desktop.go b/internal/notifications/desktop.go index 4b4c13d..417de71 100644 --- a/internal/notifications/desktop.go +++ b/internal/notifications/desktop.go @@ -1,7 +1,7 @@ package notifications import ( - "ChronoTomato/internal/shared" + "git.smsvc.net/pomodoro/ChronoTomato/internal/shared" "fmt" "github.com/gen2brain/beeep" ) diff --git a/internal/notifications/terminal.go b/internal/notifications/terminal.go index 685cf79..f7915e9 100644 --- a/internal/notifications/terminal.go +++ b/internal/notifications/terminal.go @@ -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" diff --git a/internal/websocket/receive.go b/internal/websocket/receive.go index d5ba0cc..9493caf 100644 --- a/internal/websocket/receive.go +++ b/internal/websocket/receive.go @@ -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"