mirror of
https://github.com/vvsviridov/enm-cli.git
synced 2025-10-23 08:22:21 +00:00
FIX: minor fixs
This commit is contained in:
@@ -154,11 +154,11 @@ async function getJobs() {
|
||||
nameValue.push(chalk.dim.italic(status))
|
||||
if (summary) {
|
||||
const { executed, executionErrors, invalid, parsed, valid } = summary.total
|
||||
nameValue.push(chalk.dim(`🍳${parsed}`))
|
||||
nameValue.push(chalk.dim(`☑${valid}`))
|
||||
nameValue.push(chalk.dim(`⚠${invalid}`))
|
||||
nameValue.push(chalk.dim(`✅${executed}`))
|
||||
nameValue.push(chalk.dim(`❌${executionErrors}`))
|
||||
nameValue.push(chalk.dim(`🍳 ${parsed}`))
|
||||
nameValue.push(chalk.dim(`☑ ${valid}`))
|
||||
nameValue.push(chalk.dim(`⚠ ${invalid}`))
|
||||
nameValue.push(chalk.dim(`✅ ${executed}`))
|
||||
nameValue.push(chalk.dim(`❌ ${executionErrors}`))
|
||||
} else {
|
||||
for (let index = 0; index < 5; index++) {
|
||||
nameValue.push(chalk.dim('⏳'))
|
||||
|
@@ -26,6 +26,9 @@ function operationStatus(type, status) {
|
||||
|
||||
|
||||
async function getOperations(failures = false, errors = false) {
|
||||
if (this.failures !== failures || this.errors !== errors) {
|
||||
this.operationsOffset = 0
|
||||
}
|
||||
this.failures = failures
|
||||
this.errors = errors
|
||||
const params = new URLSearchParams()
|
||||
|
@@ -32,8 +32,8 @@ function socketOnClose(event, resolve, reject) {
|
||||
|
||||
|
||||
function socketOnError(error, reject) {
|
||||
process.stdin.setRawMode(false)
|
||||
process.stdin.pause()
|
||||
process.stdin.setRawMode(false)
|
||||
process.stdin.pause()
|
||||
reject(error)
|
||||
}
|
||||
|
||||
@@ -55,8 +55,9 @@ async function webSocketSession(headers, socketUrl) {
|
||||
.resume()
|
||||
.setEncoding('utf8')
|
||||
.on('data', (key) => {
|
||||
if (key === '\u0003') {
|
||||
socket.send('exit')
|
||||
if (key === '\u0004') {
|
||||
socket.close()
|
||||
socket.send('\u0003')
|
||||
resolve()
|
||||
}
|
||||
socket.send(key)
|
||||
|
Reference in New Issue
Block a user