Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[doc] Use `version` CLI option in `cli-sample`

  • Loading branch information...
commit a72758cd836169b548406666a0ca90b4e7e0c4f5 1 parent a982298
@mmalecki mmalecki authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 examples/cli-sample/index.js
View
7 examples/cli-sample/index.js
@@ -2,6 +2,10 @@ console.time('start');
var flatiron = require('../../lib/flatiron'),
app = flatiron.app;
+require('pkginfo')(module, 'version');
+
+app.version = exports.version;
+
app.use(flatiron.plugins.cli, {
dir: __dirname,
usage: [
@@ -9,7 +13,8 @@ app.use(flatiron.plugins.cli, {
'',
'app start - print a prompt and arguments',
'print <msg> - echo a message'
- ]
+ ],
+ version: true
});
app.cmd('app start', function () {
Please sign in to comment.
Something went wrong with that request. Please try again.