aboutsummaryrefslogtreecommitdiff
path: root/bdep/utility.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-01-24 21:41:48 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-01-25 15:16:58 +0300
commit18bb25efa41dab4a3f7619040e2067da3533decd (patch)
tree822bd06dd0a9d5568c14862592d310fec1012b58 /bdep/utility.hxx
parenta4dabaa6db8806f23bb7d7bdbb95cab456ef3a73 (diff)
Add support for --no-progress option
Diffstat (limited to 'bdep/utility.hxx')
-rw-r--r--bdep/utility.hxx17
1 files changed, 12 insertions, 5 deletions
diff --git a/bdep/utility.hxx b/bdep/utility.hxx
index fcf0963..c4d406c 100644
--- a/bdep/utility.hxx
+++ b/bdep/utility.hxx
@@ -67,11 +67,6 @@ namespace bdep
using butl::auto_rmfile;
using butl::auto_rmdir;
- // <libbutl/fdstream.mxx>
- //
- using butl::fdnull;
- using butl::fdopen_pipe;
-
// Empty string and path.
//
extern const string empty_string;
@@ -119,6 +114,10 @@ namespace bdep
//
extern dir_path exec_dir;
+ // Progress.
+ //
+ extern bool stderr_term; // True if stderr is a terminal.
+
// Filesystem.
//
bool
@@ -147,6 +146,14 @@ namespace bdep
uint16_t verbosity = 3,
rm_error_mode = rm_error_mode::fail);
+ // File descriptor streams.
+ //
+ fdpipe
+ open_pipe ();
+
+ auto_fd
+ open_dev_null ();
+
// Run a process.
//
template <typename I, typename O, typename E, typename P, typename... A>