kitchensink
Version:
Dispatch's awesome components and style guide
29 lines (23 loc) • 838 B
JavaScript
;
var _pikud = require('pikud');
var _screenshot = require('./screenshot');
var _screenshot2 = _interopRequireDefault(_screenshot);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var main = new _pikud.Command('kitchensink', {
subCommands: {
screenshot: new _pikud.Command('screenshot', {
description: 'Take screenshots of each component',
action: function action(args, flags) {
return (0, _screenshot2.default)(flags);
},
flags: new _pikud.FlagSet([new _pikud.StringFlag('components', {
alias: 'c',
description: 'Components to take screenshots of'
}), new _pikud.StringFlag('output', {
alias: 'o',
description: 'Output directory for screenshots'
})])
})
}
});
main.run(process.argv);