Make taskwarrior shut up about overrides

This commit is contained in:
Talia 2024-04-02 15:09:45 +02:00
parent 91c7d26c48
commit e023b40575

View file

@ -19,13 +19,13 @@ function taskwarrior.import(...)
for i, filter in ipairs(filters) do for i, filter in ipairs(filters) do
filters[i] = shellescape(filter) filters[i] = shellescape(filter)
end 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 end
--- Export tasks back into taskwarrior using the import command --- Export tasks back into taskwarrior using the import command
--- @param items Task[] Sequence of tasks to import --- @param items Task[] Sequence of tasks to import
function taskwarrior.export(items) 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:write(json.encode(items))
handle:close() handle:close()
end end