aboutsummaryrefslogtreecommitdiff
path: root/bbot/utility.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-19 08:02:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-04-19 08:02:53 +0200
commitefa53d6ad8797310b10d299408c2e3fa33978e27 (patch)
tree6256e22e53b1ad9f8555e228d0ef89bd024ff292 /bbot/utility.txx
parent9b5170a723c9c78103fbd66c5c3b2b32a9af6702 (diff)
Add --fake-machine and machine-less agent/worker test
Diffstat (limited to 'bbot/utility.txx')
-rw-r--r--bbot/utility.txx5
1 files changed, 5 insertions, 0 deletions
diff --git a/bbot/utility.txx b/bbot/utility.txx
index edd674b..4ee4c6f 100644
--- a/bbot/utility.txx
+++ b/bbot/utility.txx
@@ -2,6 +2,8 @@
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license : TBC; see accompanying LICENSE file
+#include <iostream> // cin
+
#include <butl/fdstream>
#include <butl/manifest-parser>
@@ -148,6 +150,9 @@ namespace bbot
try
{
+ if (f.string () == "-")
+ return parse_manifest<T> (std::cin, "stdin", what, ignore_unknown);
+
if (!file_exists (f))
fail << what << " manifest file " << f << " does not exist";