mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
Started rework of file loading system
This commit is contained in:
1 parent
71fb8541d5
commit
6013fcd528
1 file changed
-20
@@ -151,26 +151,6 @@ masterConfigCommands.add(new libCommand.Command({
|
||||
throw err;
|
||||
}
|
||||
});
|
||||
|
||||
async function afterEditorDone() {
|
||||
}
|
||||
|
||||
// <-- start process of running editor -->
|
||||
let editorSpawn = child_process.spawn(editor, [tmpFile], {
|
||||
stdio: "inherit",
|
||||
detached: true,
|
||||
});
|
||||
editorSpawn.on("data", (data) => {
|
||||
process.stdout.pipe(data);
|
||||
});
|
||||
editorSpawn.on("err", (err) => {
|
||||
throw new libErrors.CommandError(err);
|
||||
});
|
||||
editorSpawn.on("exit", (exit) => {
|
||||
afterEditorDone();
|
||||
});
|
||||
// this is more verbose then it probably needs to be, but IMO this is more readable
|
||||
// <-- end process of starting editor -->
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
Reference in new issue
Block a user