@qmuse/qmuse-cli 1.0.5-dev.2 → 1.0.5-dev.3
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/cli.js +4 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -654,6 +654,8 @@ async function cmdWhoami(flags) {
|
|
|
654
654
|
fail(`查询当前用户失败: ${result.errorMessage ?? result.errorCode ?? `HTTP ${result.status}`}`);
|
|
655
655
|
}
|
|
656
656
|
const currentUser = result.data;
|
|
657
|
+
const tenantName = currentUser.tenantName?.trim() ||
|
|
658
|
+
(currentUser.tenantCode ? '企业专属版' : 'QMuse');
|
|
657
659
|
if (flags['--json'] === true) {
|
|
658
660
|
output({
|
|
659
661
|
apiBaseUrl,
|
|
@@ -664,6 +666,7 @@ async function cmdWhoami(flags) {
|
|
|
664
666
|
spaceId: currentUser.spaceId,
|
|
665
667
|
spaceName: currentUser.spaceName ?? null,
|
|
666
668
|
tenantCode: currentUser.tenantCode,
|
|
669
|
+
tenantName,
|
|
667
670
|
}, flags);
|
|
668
671
|
return;
|
|
669
672
|
}
|
|
@@ -675,7 +678,7 @@ async function cmdWhoami(flags) {
|
|
|
675
678
|
? (spaceName ? `${spaceName} [${currentUser.spaceId}]` : currentUser.spaceId)
|
|
676
679
|
: '(无)';
|
|
677
680
|
log.info(`当前空间 : ${spaceLabel}`);
|
|
678
|
-
log.info(
|
|
681
|
+
log.info(`所属产品 : ${tenantName}`);
|
|
679
682
|
}
|
|
680
683
|
async function cmdConfig(command, flags) {
|
|
681
684
|
const sub = command[1];
|