codify-plugin-lib 1.0.112 → 1.0.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -48,7 +48,7 @@ export class BackgroundPty {
|
|
|
48
48
|
let pipe;
|
|
49
49
|
return new Promise((resolve) => {
|
|
50
50
|
pipe = new net.Socket({ fd: fileHandle.fd });
|
|
51
|
-
|
|
51
|
+
pipe.pipe(process.stdout);
|
|
52
52
|
let output = '';
|
|
53
53
|
pipe.on('data', (data) => {
|
|
54
54
|
output += data.toString();
|
|
@@ -81,7 +81,7 @@ export class BackgroundPty {
|
|
|
81
81
|
resolve(null);
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
|
-
|
|
84
|
+
console.log(`Running command ${cmd}`);
|
|
85
85
|
this.basePty.write(`${command}\r`);
|
|
86
86
|
}));
|
|
87
87
|
}).finally(async () => {
|
package/package.json
CHANGED
package/src/plugin/plugin.ts
CHANGED
|
@@ -123,7 +123,7 @@ export class Plugin {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
const plan = await ptyLocalStorage.run(this.planPty, async () => {
|
|
126
|
-
|
|
126
|
+
return this.resourceControllers.get(type)!.plan(
|
|
127
127
|
data.desired ?? null,
|
|
128
128
|
data.state ?? null,
|
|
129
129
|
data.isStateful
|
|
@@ -61,7 +61,7 @@ export class BackgroundPty implements IPty {
|
|
|
61
61
|
return new Promise<SpawnResult>((resolve) => {
|
|
62
62
|
pipe = new net.Socket({ fd: fileHandle.fd });
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
pipe.pipe(process.stdout);
|
|
65
65
|
|
|
66
66
|
let output = '';
|
|
67
67
|
pipe.on('data', (data) => {
|
|
@@ -102,7 +102,7 @@ export class BackgroundPty implements IPty {
|
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
console.log(`Running command ${cmd}`)
|
|
106
106
|
this.basePty.write(`${command}\r`);
|
|
107
107
|
|
|
108
108
|
}));
|