mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint using actions
This commit is contained in:
parent
177771df6a
commit
2cfc4908a2
5 changed files with 5 additions and 0 deletions
|
|
@ -220,6 +220,7 @@ module.exports.setCurrentFile = (currentFile, options) => {
|
|||
|
||||
/* scrolling to current file */
|
||||
const CENTER = true;
|
||||
|
||||
DOM.scrollIntoViewIfNeeded(currentFile, CENTER);
|
||||
|
||||
CloudCmd.emit('current-file', currentFile);
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ test('cloudcmd: client: key: disable vim', async (t) => {
|
|||
|
||||
const {CloudCmd} = global;
|
||||
const {config} = CloudCmd;
|
||||
|
||||
CloudCmd.config = _config;
|
||||
|
||||
setBind();
|
||||
|
|
|
|||
|
|
@ -78,6 +78,7 @@ module.exports.show = async (options) => {
|
|||
|
||||
const {path} = Info;
|
||||
const name = getName();
|
||||
|
||||
setMsgChanged(name);
|
||||
|
||||
CloudCmd.Edit
|
||||
|
|
|
|||
|
|
@ -476,6 +476,7 @@ test('cloudcmd: route: read: root', async (t) => {
|
|||
const cloudcmd = reRequire(cloudcmdPath);
|
||||
const configManager = createConfigManager();
|
||||
const root = '/hello';
|
||||
|
||||
configManager('root', root);
|
||||
|
||||
const {request} = serveOnce(cloudcmd, {
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ module.exports = async (options, config) => {
|
|||
const host = config('ip') || 'localhost';
|
||||
const port0 = port || server.address().port;
|
||||
const url = `http://${host}:${port0}${prefix}/`;
|
||||
|
||||
console.log(`url: ${url}`);
|
||||
|
||||
if (!config('open'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue