summaryrefslogtreecommitdiff
path: root/src/shell_manager.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-05-29 10:39:03 +0000
committerMaxime Coste <frrrwww@gmail.com>2012-05-29 10:39:03 +0000
commit3bfd774f4912c2397734076ec70d298dae1fe51e (patch)
tree9eefcd0d5e295753eda9ba4ccfe3fbc6d8d13929 /src/shell_manager.hh
parent84c1cad3d5304456ba1d2ea8a9977823b99757c1 (diff)
Restore piping support.
Add a ShellManager::pipe method, which pipes a string into the command. Not quite satisfied with this interface.
Diffstat (limited to 'src/shell_manager.hh')
-rw-r--r--src/shell_manager.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shell_manager.hh b/src/shell_manager.hh
index 661e9a4f..0b22da5c 100644
--- a/src/shell_manager.hh
+++ b/src/shell_manager.hh
@@ -21,6 +21,10 @@ public:
String eval(const String& cmdline, const Context& context,
const EnvVarMap& env_vars);
+ String pipe(const String& input,
+ const String& cmdline, const Context& context,
+ const EnvVarMap& env_vars);
+
void register_env_var(const String& name, EnvVarRetriever retriever);
private: