This file (1kB) exceeds the allowed full mode (48 kb) size. The editor full height is disabled, only scrolling is allowed.
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height mode.
const { program } = require('commander');
const utils = require('corifeus-utils');
const path = require('path');
const mz = require('mz');
const lib = require('../lib');
program
.command('server [command] [param]')
.description(`This is for global update`)
.option(`-p, --password <password>`)
.action(async function (command, param, options) {
let url;
switch (command) {
case 'scale':
case 'worker':
if (param === undefined) {
param = 'auto';
}
url = `http://localhost:23502/worker/${param}`;
break;
default:
url = `http://localhost:23502/status`;
break;
}
const response = await utils.http.request({
url: url,
headers: {
'Authorization': options.password || ''
}
});
console.log(JSON.stringify(response.body, null, 4));
})
;
| / | Focus search |
| ? | Show this help |
| Esc | Unfocus input |