From e023b405756df14ee5d8449125f2ac8b9be0f9eb Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 2 Apr 2024 15:09:45 +0200 Subject: [PATCH] Make taskwarrior shut up about overrides --- src/taskwarrior.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/taskwarrior.lua b/src/taskwarrior.lua index 85ab6fe..eedd2e3 100644 --- a/src/taskwarrior.lua +++ b/src/taskwarrior.lua @@ -19,13 +19,13 @@ function taskwarrior.import(...) for i, filter in ipairs(filters) do filters[i] = shellescape(filter) end - return json.decode(io.popen("task "..table.concat(filters, " ").." export"):read("*a")) + return json.decode(io.popen("task rc.verbose: "..table.concat(filters, " ").." export"):read("*a")) end --- Export tasks back into taskwarrior using the import command --- @param items Task[] Sequence of tasks to import function taskwarrior.export(items) - local handle = assert(io.popen("task import")) + local handle = assert(io.popen("task rc.verbose: import")) handle:write(json.encode(items)) handle:close() end