@n42/cli 0.1.98 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/cli.js +4 -4
- package/src/discover.js +4 -5
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -156,15 +156,15 @@ program
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
if (!artefacts.length) {
|
|
159
|
-
clearScreen(`Node42 CLI v${pkg.version}`);
|
|
159
|
+
clearScreen(`Node42 CLI v${pkg.version}\n`);
|
|
160
160
|
const filter = dayFilter !== null ? ` (${dayFilter})` : ``;
|
|
161
|
-
console.log(
|
|
161
|
+
console.log(`${C.RED}No artefacts found.${C.RESET}${C.DIM}${filter}${C.RESET}\n`);
|
|
162
162
|
return;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
// ---- OUTPUT ----
|
|
166
|
-
clearScreen(`Node42 CLI v${pkg.version}`);
|
|
167
|
-
console.log(
|
|
166
|
+
clearScreen(`Node42 CLI v${pkg.version}\n`);
|
|
167
|
+
console.log(`${C.BOLD}Found ${artefacts.length} artefact(s)${filterInfo}${C.RESET}\n`);
|
|
168
168
|
|
|
169
169
|
const DATE = "DATE".padEnd(19);
|
|
170
170
|
const PID = "PID".padEnd(15);
|
package/src/discover.js
CHANGED
|
@@ -41,8 +41,7 @@ async function processSupportedDocuments(encodedDocs, onDone) {
|
|
|
41
41
|
.map(d => ({ ...d, label: buildDocLabel(d) }));
|
|
42
42
|
|
|
43
43
|
if (docs.length) {
|
|
44
|
-
console.log(
|
|
45
|
-
console.log(`Found ${docs.length} supported document type(s)\n`);
|
|
44
|
+
console.log(`${C.BOLD}Found ${docs.length} supported document type(s)${C.RESET}\n`);
|
|
46
45
|
|
|
47
46
|
docSelected = await promptForDocument(docs);
|
|
48
47
|
|
|
@@ -157,7 +156,7 @@ async function runDiscovery(participantId, options) {
|
|
|
157
156
|
const link = `\u001B]8;;file://${file}\u0007Open\u001B]8;;\u0007`;
|
|
158
157
|
|
|
159
158
|
console.log(`${C.BOLD}Discovery completed${C.RESET}`);
|
|
160
|
-
console.log(`PID : ${
|
|
159
|
+
console.log(`PID : ${participantId}`);
|
|
161
160
|
console.log(`Artefact : ${fileName} ${C.BLUE}[${link}]${C.RESET}`);
|
|
162
161
|
console.log(`Usage : ${C.RED}${serviceUsage}${C.RESET} ${C.DIM}(${rateLimit})${C.RESET}\n`);
|
|
163
162
|
return;
|
|
@@ -177,7 +176,7 @@ async function runDiscovery(participantId, options) {
|
|
|
177
176
|
const link = `\u001B]8;;file://${file}\u0007Open\u001B]8;;\u0007`;
|
|
178
177
|
|
|
179
178
|
console.log(`${C.BOLD}Discovery completed${C.RESET}`);
|
|
180
|
-
console.log(`PID : ${
|
|
179
|
+
console.log(`PID : ${participantId}`);
|
|
181
180
|
console.log(`Artefact : ${fileName} ${C.BLUE}[${link}]${C.RESET}`);
|
|
182
181
|
console.log(`Usage : ${C.RED}${serviceUsage}${C.RESET} ${C.DIM}(${rateLimit})${C.RESET}\n`);
|
|
183
182
|
return;
|
|
@@ -197,7 +196,7 @@ async function runDiscovery(participantId, options) {
|
|
|
197
196
|
const link = `\u001B]8;;file://${file}\u0007Open\u001B]8;;\u0007`;
|
|
198
197
|
|
|
199
198
|
console.log(`${C.BOLD}Discovery completed${C.RESET}`);
|
|
200
|
-
console.log(`PID : ${
|
|
199
|
+
console.log(`PID : ${participantId}`);
|
|
201
200
|
console.log(`Artefact : ${fileName} ${C.BLUE}[${link}]${C.RESET}`);
|
|
202
201
|
console.log(`Usage : ${C.RED}${serviceUsage}${C.RESET} ${C.DIM}(${rateLimit})${C.RESET}\n`);
|
|
203
202
|
}
|