From 40f2afeb8e175a832086244da227b42e98950763 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 8 Jan 2013 16:13:40 -0500 Subject: [PATCH] Add-ons - Suppressed output using rc.verbose=nothing. - Removed [...] from output with rc.json.array=no. --- scripts/add-ons/export-csv.pl | 2 +- scripts/add-ons/export-html.pl | 2 +- scripts/add-ons/export-ical.pl | 2 +- scripts/add-ons/export-sql.py | 2 +- scripts/add-ons/export-tsv.pl | 2 +- scripts/add-ons/export-xml.pl | 2 +- scripts/add-ons/export-xml.py | 2 +- scripts/add-ons/export-xml.rb | 2 +- scripts/add-ons/export-yad.pl | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/add-ons/export-csv.pl b/scripts/add-ons/export-csv.pl index f1311c11f..159e93f34 100755 --- a/scripts/add-ons/export-csv.pl +++ b/scripts/add-ons/export-csv.pl @@ -38,7 +38,7 @@ if ($@) } # Use the taskwarrior 2.0+ export command to filter and return JSON -my $command = join (' ', ("env PATH=$ENV{PATH} task export", @ARGV)); +my $command = join (' ', ("env PATH=$ENV{PATH} task rc.verbose=nothing rc.json.array=no export", @ARGV)); if ($command =~ /No matches/) { printf STDERR $command; diff --git a/scripts/add-ons/export-html.pl b/scripts/add-ons/export-html.pl index c9a16855e..12243cfde 100755 --- a/scripts/add-ons/export-html.pl +++ b/scripts/add-ons/export-html.pl @@ -38,7 +38,7 @@ if ($@) } # Use the taskwarrior 2.0+ export command to filter and return JSON -my $command = join (' ', ("env PATH='$ENV{PATH}' task export", @ARGV)); +my $command = join (' ', ("env PATH='$ENV{PATH}' task rc.verbose=nothing rc.json.array=no export", @ARGV)); if ($command =~ /No matches/) { printf STDERR $command; diff --git a/scripts/add-ons/export-ical.pl b/scripts/add-ons/export-ical.pl index d8ea66add..e3f528b00 100755 --- a/scripts/add-ons/export-ical.pl +++ b/scripts/add-ons/export-ical.pl @@ -38,7 +38,7 @@ if ($@) } # Use the taskwarrior 2.0+ export command to filter and return JSON -my $command = join (' ', ("env PATH=$ENV{PATH} task export", @ARGV)); +my $command = join (' ', ("env PATH=$ENV{PATH} task rc.verbose=nothing rc.json.array=no export", @ARGV)); if ($command =~ /No matches/) { printf STDERR $command; diff --git a/scripts/add-ons/export-sql.py b/scripts/add-ons/export-sql.py index d587a415e..81630aec7 100755 --- a/scripts/add-ons/export-sql.py +++ b/scripts/add-ons/export-sql.py @@ -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")) diff --git a/scripts/add-ons/export-tsv.pl b/scripts/add-ons/export-tsv.pl index fd7f63402..7c3f469d8 100755 --- a/scripts/add-ons/export-tsv.pl +++ b/scripts/add-ons/export-tsv.pl @@ -38,7 +38,7 @@ if ($@) } # Use the taskwarrior 2.0+ export command to filter and return JSON -my $command = join (' ', ("env PATH=$ENV{PATH} task export", @ARGV)); +my $command = join (' ', ("env PATH=$ENV{PATH} task rc.verbose=nothing rc.json.array=no export", @ARGV)); if ($command =~ /No matches/) { printf STDERR $command; diff --git a/scripts/add-ons/export-xml.pl b/scripts/add-ons/export-xml.pl index c48791e18..c9268e26e 100755 --- a/scripts/add-ons/export-xml.pl +++ b/scripts/add-ons/export-xml.pl @@ -38,7 +38,7 @@ if ($@) } # Use the taskwarrior 2.0+ export command to filter and return JSON -my $command = join (' ', ("env PATH=$ENV{PATH} task export", @ARGV)); +my $command = join (' ', ("env PATH=$ENV{PATH} task rc.verbose=nothing rc.json.array=no export", @ARGV)); if ($command =~ /No matches/) { printf STDERR $command; diff --git a/scripts/add-ons/export-xml.py b/scripts/add-ons/export-xml.py index d42e8ef95..8eb7dff2f 100755 --- a/scripts/add-ons/export-xml.py +++ b/scripts/add-ons/export-xml.py @@ -31,7 +31,7 @@ import commands import json # Use the taskwarrior 2.0+ export command to filter and return JSON -command = "/usr/local/bin/task export " + " ".join (sys.argv[1:]) +command = "/usr/local/bin/task rc.verbose=nothing rc.json.array=no export " + " ".join (sys.argv[1:]) # Generate output. print "" diff --git a/scripts/add-ons/export-xml.rb b/scripts/add-ons/export-xml.rb index b7b8085b5..3204f1937 100755 --- a/scripts/add-ons/export-xml.rb +++ b/scripts/add-ons/export-xml.rb @@ -30,7 +30,7 @@ require 'rubygems' require 'json' # Use the taskwarrior 2.0+ export command to filter and return JSON -lines = IO.popen("/usr/local/bin/task export " + ARGV.join(" ")).readlines +lines = IO.popen("/usr/local/bin/task rc.verbose=nothing rc.json.array=no export " + ARGV.join(" ")).readlines # Generate output. print "\n" diff --git a/scripts/add-ons/export-yad.pl b/scripts/add-ons/export-yad.pl index d19b25010..43ca6b20a 100755 --- a/scripts/add-ons/export-yad.pl +++ b/scripts/add-ons/export-yad.pl @@ -38,7 +38,7 @@ if ($@) } # Use the taskwarrior 2.0+ export command to filter and return JSON -my $command = join (' ', ("env PATH=$ENV{PATH} task export", @ARGV)); +my $command = join (' ', ("env PATH=$ENV{PATH} task rc.verbose=nothing rc.json.array=no export", @ARGV)); if ($command =~ /No matches/) { printf STDERR $command;