lore-extract-action
Version:
Creates an action matching the implicit pattern used by Lore
26 lines (18 loc) • 498 B
JavaScript
var Generator = require('./generator');
module.exports = {
command: "action",
describe: "Creates an action that mirrors the behavior of the corresponding blueprint in Lore",
options: {
params: '<filename>',
options: {
filename: {
description: 'Name of the file(s) to extract, e.g. `post` or `post/create`',
type: 'string'
}
},
handler: function(argv) {
var generator = new Generator(argv);
generator.generate(argv);
}
}
};