@erdoai/cli 0.276.0 → 0.277.0
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/dist/index.js +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3043,6 +3043,11 @@ function identityNotes(rows) {
|
|
|
3043
3043
|
}
|
|
3044
3044
|
return notes;
|
|
3045
3045
|
}
|
|
3046
|
+
function formatConnectionAccountOption(account, selected) {
|
|
3047
|
+
const owner = account.parent ? ` ${account.parent}` : "";
|
|
3048
|
+
const unavailable = account.unavailable_reason ? ` Unavailable: ${account.unavailable_reason}` : "";
|
|
3049
|
+
return `${selected ? "*" : " "} ${account.id} ${account.name} ${account.type}${owner}${unavailable}`;
|
|
3050
|
+
}
|
|
3046
3051
|
|
|
3047
3052
|
// src/scope.ts
|
|
3048
3053
|
import { Option } from "commander";
|
|
@@ -11388,9 +11393,7 @@ accountCmd.command("show <integration-id>").description("Show which account a co
|
|
|
11388
11393
|
console.log(scope.description);
|
|
11389
11394
|
const selected = new Set(scope.selected.map((a) => a.id));
|
|
11390
11395
|
for (const account of opts.options ? scope.options : scope.selected) {
|
|
11391
|
-
|
|
11392
|
-
const owner = account.parent ? ` ${account.parent}` : "";
|
|
11393
|
-
console.log(`${marker} ${account.id} ${account.name} ${account.type}${owner}`);
|
|
11396
|
+
console.log(formatConnectionAccountOption(account, selected.has(account.id)));
|
|
11394
11397
|
}
|
|
11395
11398
|
if (!opts.options) {
|
|
11396
11399
|
if (scope.selected.length === 0) console.error("No account recorded on this connection.");
|