chore(cloudcmd) lint using actions

This commit is contained in:
coderaiser 2022-01-20 18:44:25 +00:00
parent 177771df6a
commit 2cfc4908a2
5 changed files with 5 additions and 0 deletions

View file

@ -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);

View file

@ -58,6 +58,7 @@ test('cloudcmd: client: key: disable vim', async (t) => {
const {CloudCmd} = global;
const {config} = CloudCmd;
CloudCmd.config = _config;
setBind();

View file

@ -78,6 +78,7 @@ module.exports.show = async (options) => {
const {path} = Info;
const name = getName();
setMsgChanged(name);
CloudCmd.Edit

View file

@ -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, {

View file

@ -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'))