add -v to status

This commit is contained in:
Matias Alejo Garcia 2015-02-13 10:30:58 -03:00
parent 7177baf043
commit 8afe0009ec
2 changed files with 6 additions and 4 deletions

View File

@ -7,6 +7,7 @@ var common = require('./common');
program
.version('0.0.1')
.option('-c,--config [file]', 'Wallet config filename')
.option('-v,--verbose', 'be verbose')
.parse(process.argv);
var args = program.args;
@ -14,8 +15,10 @@ var cli = new CliLib({
filename: program.config
});
cli.status(function(err, xx) {
cli.status(function(err, x) {
common.die(err);
console.log(' * Status:', xx);
});
console.log('* Wallet %s [%s]: %d-%d %s ', x.name, x.isTestnet ? 'testnet' : 'livenet', x.m, x.n, x.status);
if (program.verbose)
console.log('* Raw Server Response:\n', x); //TODO
});

View File

@ -185,7 +185,6 @@ CliLib.prototype.status = function(cb) {
var self = this;
var data = this._loadAndCheck();
console.log('[clilib.js.180:data:]', data); //TODO
var url = '/v1/wallets/';
var signature = _signRequest(url, {}, data.signingPrivKey);