Skip to content

Commit 5f8cffe

Browse files
author
Jose Constela
committed
bump versions
1 parent 557a094 commit 5f8cffe

File tree

6 files changed

+464
-241
lines changed

6 files changed

+464
-241
lines changed

agent.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const pjson = require('./package.json')
22
const io = require('socket.io-client')
3-
const colors = require('colors')
43
const url = require('url')
54
const pretty = require('./helpers/pretty')
65
const services = require('./services')

helpers/report.js

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,3 @@
1-
const colors = require('colors')
2-
3-
/**
4-
* Given an std output (either stdout or stderr) in either array or string
5-
* format, convert it to an array and remove empty lines.
6-
*
7-
* For example, if a command outputs the following:
8-
*
9-
* - Command in progress...
10-
* -
11-
* - Please wait a moment.
12-
* -
13-
*
14-
* The result must look like:
15-
*
16-
* ['Command in progress...', 'Please wait a moment.']
17-
*
18-
* @param {Array|string} input std to be converted into a filtered array.
19-
* @returns {Array} List of strings from the original input.
20-
*/
21-
const parseStd = (input) => {
22-
//
23-
if (!input) return []
24-
try {
25-
return (Array.isArray(input) ? input : input.toString().split('\n'))
26-
.map(l => l.trim())
27-
.filter(Boolean) || null
28-
}
29-
catch (ex) {
30-
console.error(ex)
31-
return []
32-
}
33-
}
34-
35-
module.exports.parseStd = parseStd
36-
371
/**
382
* Reports stds outputed by the in-execution command.
393
*

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
22
'use strict'
33
const program = require('commander')
4-
const colors = require('colors')
54
const url = require('url')
65
const os = require('os')
76
const pkg = require('./package.json')

0 commit comments

Comments
 (0)