Skip to content

Commit

Permalink
Bump shargs-repl version to 0.4.0 and use replSync instead of repl to…
Browse files Browse the repository at this point in the history
… get the same synchronous actions
  • Loading branch information
Yord committed Jun 23, 2020
1 parent d2bf877 commit f9976eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"shargs": "^0.24.6",
"shargs-opts": "^0.5.0",
"shargs-parser": "^0.6.0",
"shargs-repl": "^0.3.0",
"shargs-repl": "0.4.0",
"shargs-usage": "^0.6.0",
"table": "^5.4.6",
"tiny-human-time": "^1.2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/index-shargs.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const clui = require("clui");
// const registerCommands = require("./commands");

const { command, variadic } = require('shargs-opts')
const { repl } = require('shargs-repl')
const { repl, replSync } = require('shargs-repl')
const loadCommands = require('./commands/shargs')
const {lexer, parser} = require('./parser')

Expand All @@ -39,7 +39,7 @@ function REPL(broker, opts) {
// Set the commands
commands.opts = subCommands

repl(lexer, parser, commands, {only: true})
replSync(lexer, parser, commands, {only: true})
}

module.exports = REPL;

0 comments on commit f9976eb

Please sign in to comment.