summaryrefslogtreecommitdiff
path: root/src/muniacli.cc
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2012-06-14 11:55:15 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2012-06-14 11:55:15 +0200
commiteb8b23218f73f7ac92ea0fa3bcef71d40c355bf0 (patch)
treee9f4dcb0450c2f268313b848dd8168df871cc6e1 /src/muniacli.cc
parent3f8addaa8d545eda8f8030d1e44d90137f24b8a0 (diff)
Fixed quoting.
Diffstat (limited to 'src/muniacli.cc')
-rw-r--r--src/muniacli.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/muniacli.cc b/src/muniacli.cc
index 14f543e..b6e5bbf 100644
--- a/src/muniacli.cc
+++ b/src/muniacli.cc
@@ -340,21 +340,25 @@ int main(int argc, char** argv)
switch(cmd) {
case CREATE:
msgs = "create " + taskbyid + ";";
+ msgs += "observe " + taskbyid + ";";
break;
case LIST:
- msgs = "observe " + taskbyid; //+
+ msgs = "observe " + taskbyid + ";"; //+
// "; unobserve " + task + ";";
break;
case REMOVE:
msgs = "remove " + taskbyid + ";";
break;
case UPDATE:
- msgs = "update " + taskbyid + " " + cmd_opts;
+ msgs = "update " + taskbyid + " \"" + cmd_opts + "\"; ";
+ msgs += "observe " + taskbyid + ";";
break;
case DEFAULT:
break;
}
+// printf("msgs: %s\n", msgs.c_str());
+
/*
if(!interactive && argc - optionscount < 3) {
fprintf(stderr, "%s", USAGE);