bwbox/main.nim

17 lines
284 B
Nim

import lib/sandbox
import lib/args
import options
import random
proc main(): int =
let args = parseArgs()
if args.isNone:
echo "Usage: bwshell --command=cmd --profile=profile <sandbox_name>"
return 1
else:
randomize()
sandboxExec(args.unsafeGet)
quit(main())