@@ -8,6 +8,11 @@ import { runCommand } from './run-command';
88
99import hexoInit from './init' ;
1010import hexoNew from './new' ;
11+ import hexoGenerate from './generate' ;
12+ import { hexoServer , hexoStopServer } from './server' ;
13+ import hexoDeploy from './deploy' ;
14+ import hexoPublish from './publish' ;
15+ import hexoClean from './clean' ;
1116// this method is called when your extension is activated
1217// your extension is activated the very first time the command is executed
1318export const activate = function ( context : ExtensionContext ) {
@@ -21,7 +26,13 @@ export const activate = function (context: ExtensionContext) {
2126 // The commandId parameter must match the command field in package.json
2227 const disposables = [
2328 Commands . registerCommand ( 'hexo-script.init' , hexoInit ) ,
24- Commands . registerCommand ( 'hexo-script.new' , hexoNew ) ,
29+ Commands . registerCommand ( 'hexo-script.new' , hexoNew ) ,
30+ Commands . registerCommand ( 'hexo-script.generate' , hexoGenerate ) ,
31+ Commands . registerCommand ( 'hexo-script.server' , hexoServer ) ,
32+ Commands . registerCommand ( 'hexo-script.stop' , hexoStopServer ) ,
33+ Commands . registerCommand ( 'hexo-script.deploy' , hexoDeploy ) ,
34+ Commands . registerCommand ( 'hexo-script.publish' , hexoPublish ) ,
35+ Commands . registerCommand ( 'hexo-script.clean' , hexoClean )
2536 ] ;
2637
2738 context . subscriptions . push ( ...disposables , outputChannel ) ;
0 commit comments