mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
add "deno run" subcommand (#2215)
This commit is contained in:
parent
3608117132
commit
f6a9d7d717
54 changed files with 314 additions and 210 deletions
|
@ -19,7 +19,7 @@ class Repl(object):
|
|||
def input(self, *lines, **kwargs):
|
||||
exit_ = kwargs.pop("exit", True)
|
||||
sleep_ = kwargs.pop("sleep", 0)
|
||||
p = Popen([self.deno_exe, "-A"], stdout=PIPE, stderr=PIPE, stdin=PIPE)
|
||||
p = Popen([self.deno_exe], stdout=PIPE, stderr=PIPE, stdin=PIPE)
|
||||
try:
|
||||
# Note: The repl takes a >100ms until it's ready.
|
||||
time.sleep(sleep_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue