You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
793 B

10 years ago
#!/usr/bin/env node
var program = require('commander');
10 years ago
var ClientLib = require('../lib/clientlib.js');
10 years ago
var common = require('./common');
program
.version('0.0.1')
.option('-c, --config [file]', 'Wallet config filename')
.option('-v, --verbose', 'be verbose')
10 years ago
.parse(process.argv);
var args = program.args;
10 years ago
var cli = new ClientLib({
filename: program.config
});
10 years ago
10 years ago
cli.status(function(err, x) {
10 years ago
common.die(err);
10 years ago
console.log('* Wallet %s [%s]: %d-%d %s ', x.name, x.isTestnet ? 'testnet' : 'livenet', x.m, x.n, x.status);
10 years ago
10 years ago
if (program.verbose)
console.log('* Raw Server Response:\n', x); //TODO
10 years ago
cli.txProposals(function(err, x) {
console.log('[bit-status.27]', x); //TODO
if (program.verbose)
console.log('* Raw Server Response:\n', x); //TODO
});
10 years ago
});