Implemented basic shell command execution and result retrieval. Next Step: Remove completed tasks from queue
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
import winim
|
||||
import winim, osproc, strutils
|
||||
|
||||
import ../types
|
||||
|
||||
proc executeShellCommand*(command: seq[string]): TaskResult =
|
||||
|
||||
echo command.join(" ")
|
||||
let (output, status) = execCmdEx(command.join(" "))
|
||||
|
||||
return output
|
||||
|
||||
Reference in New Issue
Block a user