Skip to content

Commit cf07992

Browse files
committed
art: format of the code
1 parent aea8ab2 commit cf07992

6 files changed

Lines changed: 20 additions & 26 deletions

File tree

src/plugins/commands/show/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
module.exports = function showCommand(api) {
44

5-
const registerMethods = require('./methods');
6-
registerMethods(api);
7-
85
const { _, chalk, getPadLength, logger: { SPACE_CHAR } } = require('@micro-app/shared-utils');
96

107
const details = `
@@ -184,3 +181,5 @@ Examples:
184181
}
185182
}
186183
};
184+
185+
module.exports.registerMethod = require('./registerMethod');

src/plugins/commands/show/methods.js

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict';
2+
3+
module.exports = {
4+
addCommandShow: {
5+
type: 'ADD',
6+
description: '增加展示信息命令',
7+
},
8+
};

src/plugins/commands/version/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
module.exports = function(api) {
44

5-
const registerMethods = require('./methods');
6-
registerMethods(api);
7-
85
api.registerCommand('version', {
96
description: 'show version',
107
usage: 'micro-app version',
@@ -72,3 +69,5 @@ module.exports = function(api) {
7269
}
7370
});
7471
};
72+
73+
module.exports.registerMethod = require('./registerMethod');

src/plugins/commands/version/methods.js

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict';
2+
3+
module.exports = {
4+
addCommandVersion: {
5+
type: 'ADD',
6+
description: '增加依赖库的版本信息',
7+
},
8+
};

0 commit comments

Comments
 (0)