summaryrefslogtreecommitdiffhomepage
path: root/pkg/app/paths/paths.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/app/paths/paths.go')
-rw-r--r--pkg/app/paths/paths.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/app/paths/paths.go b/pkg/app/paths/paths.go
new file mode 100644
index 000000000..03efc85e0
--- /dev/null
+++ b/pkg/app/paths/paths.go
@@ -0,0 +1,15 @@
+package paths
+
+import "path/filepath"
+
+func Data(project string) string {
+ return filepath.Join(project, ".opencode")
+}
+
+func Storage(project string) string {
+ return filepath.Join(Data(project), "storage")
+}
+
+func Log(project string) string {
+ return filepath.Join(Data(project), "log")
+}