diff options
| author | Ben Sima <ben@bensima.com> | 2025-11-26 10:18:27 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-11-26 10:18:27 -0500 |
| commit | 75d5716a31ea1d9d1e92d76d8417dd5ae8dcbab6 (patch) | |
| tree | d57ac1e817074a8a6a10409dacf91761d279a905 /Omni/Task/Core.hs | |
| parent | 1ab28d35a82ceb89ad4fe71582659bd717757ab6 (diff) | |
Move test database to _/tmp (cabdir)
- Document _/ directory structure in AGENTS.md - Change test database
path from .tasks/ to _/tmp/ - Update all references in tests and docs
Diffstat (limited to 'Omni/Task/Core.hs')
| -rw-r--r-- | Omni/Task/Core.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Omni/Task/Core.hs b/Omni/Task/Core.hs index 3b4eaa0..bf52c2c 100644 --- a/Omni/Task/Core.hs +++ b/Omni/Task/Core.hs @@ -238,9 +238,9 @@ getTasksDbPath = do customPath <- lookupEnv "TASK_DB_PATH" testMode <- lookupEnv "TASK_TEST_MODE" let path = case (testMode, customPath) of - (Just "1", _) -> ".tasks/tasks-test.db" -- Test mode always uses test db + (Just "1", _) -> "_/tmp/tasks-test.db" -- Test mode uses cabdir (_, Just p) -> p -- Custom path for production - _ -> ".tasks/tasks.db" + _ -> "_/tmp/tasks.db" -- Default uses cabdir pure path -- DB Helper @@ -254,7 +254,7 @@ withDb action = do -- Initialize the task database initTaskDb :: IO () initTaskDb = do - createDirectoryIfMissing True ".tasks" + createDirectoryIfMissing True "_/tmp" withDb <| \conn -> do SQL.execute_ conn |
