Skip to content

Commit

Permalink
set headless to false by default on a repl
Browse files Browse the repository at this point in the history
  • Loading branch information
pranaygp committed Aug 30, 2020
1 parent 0d87ce0 commit 60bb6f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/cli/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ exports.handler = async (argv) => {
output: process.stdout,
});

// Set headless to false
await evalProgram(parser.parse("set headless false"), {
scope,
document: "repl",
basedir: process.cwd(),
});

const rep = () => {
rl.question("> ", async (stmt) => {
if (stmt === "quit") {
Expand Down

0 comments on commit 60bb6f1

Please sign in to comment.