Comparing version 0.0.7 to 0.0.8
@@ -29,5 +29,9 @@ #!/usr/bin/env node | ||
const u = manage.parse(uri); | ||
if (u.action === 'help') manage.help(data, u); | ||
else if (typeof data == 'object') console.log(JSON.stringify(data, null, 4)); | ||
else console.log(data); | ||
if (u.action === 'help') { | ||
manage.help(data, u); | ||
} | ||
// else if (typeof data == 'object') console.log(JSON.stringify(data, null, 4)); | ||
// else console.log(data); | ||
else manage.show(data); | ||
process.exit(); | ||
}).catch(err => { | ||
@@ -34,0 +38,0 @@ nirvana.error(err); |
@@ -24,2 +24,3 @@ require('pn-core'); | ||
this.pkg = JSON.parse(fs.readFileSync(path.join(__dirname, 'package.json'))); | ||
this.show = require('./lib/show'); | ||
} | ||
@@ -26,0 +27,0 @@ // 用于pn-reg/unreg/list,是否从这里删除,由pn-xxx实现 |
{ | ||
"name": "pn-cli", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "phoenix nirvana manager", | ||
@@ -27,3 +27,4 @@ "main": "index.js", | ||
"commander": "^7.0.0", | ||
"pn-core": "^0.0.3" | ||
"moment": "^2.29.1", | ||
"pn-core": "^0.0.5" | ||
}, | ||
@@ -30,0 +31,0 @@ "directories": { |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
14722
408
3
1
+ Addedmoment@^2.29.1
+ Addedmoment@2.30.1(transitive)
+ Addedpn-core@0.0.5(transitive)
- Removedpn-core@0.0.3(transitive)
Updatedpn-core@^0.0.5