feat: capture output and exit code of commands

+ ignore interactive commands like vim, top or nano
This commit is contained in:
wancat committed 2023-07-27 17:56:32 +08:00
1 parent d997a061a9
commit b9643e7d5c
4 files changed
+25 -5

No files matched your search

+4
View File
@@ -17,6 +17,10 @@ const Command = model(
type: String,
required: true,
},
exit_code: {
type: Number,
required: false,
},
output: {
type: String,
required: false,