mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-15 21:28:40 -09:00
fix for opn name change
This commit is contained in:
parent
5e30204c48
commit
e778f1d494
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ const {version} = require('../app/package');
|
||||||
const pify = require('pify');
|
const pify = require('pify');
|
||||||
const args = require('args');
|
const args = require('args');
|
||||||
const chalk = require('chalk');
|
const chalk = require('chalk');
|
||||||
const opn = require('opn');
|
const open = require('open');
|
||||||
const columnify = require('columnify');
|
const columnify = require('columnify');
|
||||||
const got = require('got');
|
const got = require('got');
|
||||||
const ora = require('ora');
|
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_) => {
|
args.command(['d', 'docs', 'h', 'home'], 'Open the npm page of a plugin', (name, args_) => {
|
||||||
const pluginName = args_[0];
|
const pluginName = args_[0];
|
||||||
assertPluginName(pluginName);
|
assertPluginName(pluginName);
|
||||||
opn(`http://ghub.io/${pluginName}`, {wait: false});
|
open(`http://ghub.io/${pluginName}`, {wait: false, url: true});
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue