Skip to content

Instantly share code, notes, and snippets.

@PabloMansanet
Created September 30, 2019 13:44
Show Gist options
  • Save PabloMansanet/42888cca98b64bc5f4ab6285852a3c41 to your computer and use it in GitHub Desktop.
Save PabloMansanet/42888cca98b64bc5f4ab6285852a3c41 to your computer and use it in GitHub Desktop.
import osproc
type
process_state = object
system_process: osproc.Process
proc process*(command: string): process_state =
result = process_state(
system_process: startProcess(
command: command
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment