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.
31 lines
598 B
31 lines
598 B
#!/usr/bin/env node
|
|
|
|
var flatiron = require('../lib/flatiron'),
|
|
path = require('path'),
|
|
app = flatiron.app;
|
|
|
|
var actions = {
|
|
create: 'Creates an empty template for a flatiron application'
|
|
};
|
|
|
|
app.version = flatiron.version;
|
|
|
|
app.use(flatiron.plugins.cli, {
|
|
version: true,
|
|
dir: path.join(__dirname, '..', 'lib', 'flatiron', 'cli'),
|
|
usage: [
|
|
'flatiron',
|
|
'',
|
|
'Commands:'
|
|
].concat(Object.keys(actions).map(function(key){
|
|
return ' ' + key + ' - ' + actions[key];
|
|
}))
|
|
});
|
|
|
|
//
|
|
// Alias `flatiron create` to `flatiron new`.
|
|
//
|
|
app.alias('new', 'create');
|
|
|
|
app.start();
|