diff options
author | MaZderMind | 2016-12-18 10:37:58 +0100 |
---|---|---|
committer | MaZderMind | 2016-12-18 10:37:58 +0100 |
commit | 23c70f3042251675796ebff7f3568005a335fa73 (patch) | |
tree | 547688e0ef964adb2eb28e1419e62f796f28ddd6 /lib/command-helper.php | |
parent | 738878b8b060b3cfcdde2d88a1a28d5ce83e4aa7 (diff) | |
parent | da739f3b60a30d5dd5c7877742f8b5c292f25f46 (diff) |
Merge branch 'feature/20-declarative-downloading'
fixes #20
Diffstat (limited to '')
-rw-r--r-- | lib/command-helper.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/command-helper.php b/lib/command-helper.php new file mode 100644 index 0000000..c406b9e --- /dev/null +++ b/lib/command-helper.php @@ -0,0 +1,15 @@ +<?php + +function stderr($str) { + $args = func_get_args(); + $args[0] = $args[0]."\n"; + array_unshift($args, STDERR); + call_user_func_array('fprintf', $args); +} + +function stdout($str) { + $args = func_get_args(); + $args[0] = $args[0]."\n"; + array_unshift($args, STDOUT); + call_user_func_array('fprintf', $args); +} |