summaryrefslogtreecommitdiffstats
path: root/internal/state/state.go
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-01-24 09:48:34 -0800
committerbndw <ben@bdw.to>2026-01-24 09:48:34 -0800
commit5861e465a2ccf31d87ea25ac145770786f9cc96e (patch)
tree4ac6b57a06b46d8492717b235909f9e0db0b4f22 /internal/state/state.go
parentef37850c7090493cf2b26d2e565511fe23cc9bfc (diff)
Rename project from deploy to ship
- Rename module to github.com/bdw/ship - Rename cmd/deploy to cmd/ship - Update all import paths - Update config path from ~/.config/deploy to ~/.config/ship - Update VPS env path from /etc/deploy to /etc/ship - Update README, Makefile, and docs
Diffstat (limited to 'internal/state/state.go')
-rw-r--r--internal/state/state.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/state/state.go b/internal/state/state.go
index def0bcf..b99e4ca 100644
--- a/internal/state/state.go
+++ b/internal/state/state.go
@@ -33,7 +33,7 @@ const (
33 startPort = 8001 33 startPort = 8001
34) 34)
35 35
36// Load reads state from ~/.config/deploy/state.json 36// Load reads state from ~/.config/ship/state.json
37func Load() (*State, error) { 37func Load() (*State, error) {
38 path := statePath() 38 path := statePath()
39 39
@@ -62,7 +62,7 @@ func Load() (*State, error) {
62 return &state, nil 62 return &state, nil
63} 63}
64 64
65// Save writes state to ~/.config/deploy/state.json 65// Save writes state to ~/.config/ship/state.json
66func (s *State) Save() error { 66func (s *State) Save() error {
67 path := statePath() 67 path := statePath()
68 68
@@ -153,7 +153,7 @@ func statePath() string {
153 home, err := os.UserHomeDir() 153 home, err := os.UserHomeDir()
154 if err != nil { 154 if err != nil {
155 // Fallback to current directory (should rarely happen) 155 // Fallback to current directory (should rarely happen)
156 return ".deploy-state.json" 156 return ".ship-state.json"
157 } 157 }
158 return filepath.Join(home, ".config", "deploy", "state.json") 158 return filepath.Join(home, ".config", "ship", "state.json")
159} 159}