cloudcc-cli 1.6.3 → 1.6.4
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/README.md +7 -0
- package/package.json +1 -1
- package/utils/utils.js +6 -0
package/README.md
CHANGED
package/package.json
CHANGED
package/utils/utils.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const { getParams, postNormal } = require("./http")
|
|
2
2
|
const fs = require("fs");
|
|
3
3
|
const path = require("path")
|
|
4
|
+
const chalk = require("chalk")
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* 获得配置信息
|
|
@@ -23,6 +24,11 @@ async function getBaseUrl(orgId) {
|
|
|
23
24
|
*/
|
|
24
25
|
async function getBusToken(path) {
|
|
25
26
|
let devConfig = getPackageJson(path);
|
|
27
|
+
if(!devConfig.username||!devConfig.safetyMark||!devConfig.clientId||!devConfig.openSecretKey||!devConfig.orgId){
|
|
28
|
+
console.log(chalk.red('安全标记配置有误,请查看文档进行配置:https://cloudccone.feishu.cn/wiki/IE0RwAOUFitPEMko1IxcaYMwnGx'));
|
|
29
|
+
console.log();
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
26
32
|
let body = {
|
|
27
33
|
username: devConfig.username,
|
|
28
34
|
safetyMark: devConfig.safetyMark,
|