19 lines
424 B
JavaScript
19 lines
424 B
JavaScript
|
/* globals hexo:false, console:false*/
|
||
|
'use strict';
|
||
|
|
||
|
var command = require('./lib/command');
|
||
|
|
||
|
hexo.extend.console.register(
|
||
|
'elasticsearch',
|
||
|
'Index your content in ElasticSearch API',
|
||
|
{
|
||
|
options: [
|
||
|
{ name: '--dry-run',
|
||
|
desc: 'Does not push content to ElasticSearch' },
|
||
|
{ name: '--flush',
|
||
|
desc: 'Resets the ElasticSearch index before starting the indexation' },
|
||
|
],
|
||
|
},
|
||
|
command
|
||
|
);
|