vue-carousel-3d
Version:
Beautiful, flexible and touch supported 3D Carousel for Vue.js
21 lines (16 loc) • 531 B
JavaScript
;
const tildify = require('tildify');
const chalk = require('chalk');
function publishConsole(args) {
// Display help message if user didn't input any arguments
if (!args._.length) {
return this.call('help', {_: ['publish']});
}
return this.post.publish({
slug: args._.pop(),
layout: args._.length ? args._[0] : this.config.default_layout
}, args.r || args.replace).then(post => {
this.log.info('Published: %s', chalk.magenta(tildify(post.path)));
});
}
module.exports = publishConsole;