Spawn.vala
authorAlan Knowles <alan@roojs.com>
Fri, 2 May 2014 09:31:07 +0000 (17:31 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 2 May 2014 09:31:07 +0000 (17:31 +0800)
Spawn.vala

index bdce999..18f5a63 100644 (file)
@@ -51,25 +51,24 @@ public class  SpawnConfig {
     public SpawnErr stderr;
     public SpawnInput input;
     // defaults..
-    public SpawnConfig() {
-        cwd = "";
-        args = [];
-        env = [];
+    public SpawnConfig(string cwd,
+            string[] args,
+            string[] env
+        ) {
+        this.cwd = cwd;
+        this.args = args;
+        this.env = env;
+         
         async = false;
         exceptions = false;
         debug = false;
+        
         output = null;
         stderr = null;
         input = null;
         
     }
-    public setCommand(string cwd,
-            string[] args,
-            string[] env
-        ) {
-        this.cwd = cwd;
-        this.args = args;
-        this.env = env;
+    public setCommand(
     }
     public setOptions(
             boolean async,