From e778f1d494105585ec71d8265f10fe2eeb43b0ee Mon Sep 17 00:00:00 2001 From: Benjamin Staneck Date: Tue, 15 Oct 2019 21:31:07 +0200 Subject: [PATCH] fix for opn name change --- cli/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/index.js b/cli/index.js index 5363abf5..272ffece 100644 --- a/cli/index.js +++ b/cli/index.js @@ -7,7 +7,7 @@ const {version} = require('../app/package'); const pify = require('pify'); const args = require('args'); const chalk = require('chalk'); -const opn = require('opn'); +const open = require('open'); const columnify = require('columnify'); const got = require('got'); const ora = require('ora'); @@ -130,7 +130,7 @@ args.command(['lsr', 'list-remote', 'ls-remote'], 'List plugins available on npm args.command(['d', 'docs', 'h', 'home'], 'Open the npm page of a plugin', (name, args_) => { const pluginName = args_[0]; assertPluginName(pluginName); - opn(`http://ghub.io/${pluginName}`, {wait: false}); + open(`http://ghub.io/${pluginName}`, {wait: false, url: true}); process.exit(0); });