Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2 from pksunkara/master

Make use of flatiron-cli-version plugin
  • Loading branch information...
commit 339e23b38b5a6acb19ba695ceecda0078bf6460e 2 parents d4b0646 + a2b1a44
Nuno Job authored
Showing with 7 additions and 15 deletions.
  1. +2 −10 futoncli.js
  2. +5 −5 package.json
12 futoncli.js
View
@@ -9,19 +9,11 @@ var futoncli = module.exports = new flatiron.App({
}
});
-require('pkginfo')(module, 'name', 'version');
+futoncli.use(require('flatiron-cli-version'));
futoncli.use(flatiron.plugins.cli, {
usage: require('./commands/usage'),
source: path.join(__dirname, 'futoncli', 'commands'),
- version: true,
- argv: {
- version: {
- alias: 'v',
- description: 'print futon version and exit',
- string: true
- }
- }
});
futoncli.started = false;
@@ -173,4 +165,4 @@ futoncli.showError = function (command, err, shallow, skip) {
}, 2);
futoncli.log.info('futon '.grey + 'not ok'.red.bold);
-};
+};
10 package.json
View
@@ -11,11 +11,11 @@
, "keywords" :
["couchdb", "data", "request", "json", "nosql", "micro", "nano", "database"]
, "dependencies" :
- { "nano" : "3.0.x"
- , "flatiron" : "0.2.x"
- , "colors" : "0.6.x"
- , "flatiron-cli-config" : "0.1.x"
- , "pkginfo" : "0.2.x"
+ { "nano" : "3.0.x"
+ , "flatiron" : "0.2.x"
+ , "colors" : "0.6.x"
+ , "flatiron-cli-config" : "0.1.x"
+ , "flatiron-cli-version" : "0.1.x"
}
, "devDependencies" :
{ "request" : "2.9.x"
Please sign in to comment.
Something went wrong with that request. Please try again.