Add-ons
- Suppressed output using rc.verbose=nothing. - Removed [...] from output with rc.json.array=no.
This commit is contained in:
@@ -141,7 +141,7 @@ def main():
|
||||
""" Return a list of SQL statements. """
|
||||
|
||||
# Use the taskwarrior 2.0+ export command to filter and return JSON
|
||||
command = "task export " + " ".join(sys.argv[1:])
|
||||
command = "task rc.verbose=nothing rc.json.array=no export " + " ".join(sys.argv[1:])
|
||||
|
||||
# Load each task from json to a python dict
|
||||
tasks = map(json.loads, commands.getoutput(command).split(",\n"))
|
||||
|
||||
Reference in New Issue
Block a user