控制台是 Hexo 與使用者之間溝通的橋樑。 It registers and describes the available console commands.
概要
hexo.extend.console.register(name, desc, options, function (args) { |
Argument | 描述 |
---|---|
name |
名稱 |
desc |
描述 |
options |
選項 |
An argument args
will be passed into the function. This is the argument that users type into the terminal. It’s parsed by Minimist.
選項
用法
The usage of a console command. For example:
{ |
arguments
The description of each argument of a console command. For example:
{ |
options
The description of each option of a console command. For example:
{ |
desc
More detailed information about a console command.
範例
hexo.extend.console.register( |