@alicloud/acc
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -32,3 +32,3 @@ 'use strict'; | ||
console.log(` # | ${'Profile'.padEnd(maxNameLength, ' ')} | Credential `); | ||
console.log(`---|${'-'.padEnd(maxNameLength + 2, '-')}|----------`); | ||
console.log(`---|${'-'.repeat(maxNameLength + 2)}|----------`); | ||
for (const d of config.profiles) { | ||
@@ -35,0 +35,0 @@ console.log(` ${d.name === config.current ? '*' : ' '} | ${d.name.padEnd(maxNameLength, ' ')} | ${getDetail(d)}`); |
@@ -256,9 +256,17 @@ 'use strict'; | ||
console.log(`export ALIBABACLOUD_ACCESS_KEY_ID=${credential.getAccessKeyId()}`); | ||
console.log(`export ALIBABA_CLOUD_ACCESS_KEY_ID=${credential.getAccessKeyId()}`); | ||
console.log(`export ALICLOUD_ACCESS_KEY_ID=${credential.getAccessKeyId()}`); | ||
console.log(`export ALIBABACLOUD_ACCESS_KEY_SECRET=${credential.getAccessKeySecret()}`); | ||
console.log(`export ALIBABA_CLOUD_ACCESS_KEY_SECRET=${credential.getAccessKeySecret()}`); | ||
console.log(`export ALICLOUD_ACCESS_KEY_SECRET=${credential.getAccessKeySecret()}`); | ||
if (credential.getSecurityToken()) { | ||
console.log(`export ALIBABACLOUD_SECURITY_TOKEN=${credential.getSecurityToken()}`); | ||
console.log(`export ALIBABA_CLOUD_SECURITY_TOKEN=${credential.getSecurityToken()}`); | ||
console.log(`export ALICLOUD_SECURITY_TOKEN=${credential.getSecurityToken()}`); | ||
console.log(`export SECURITY_TOKEN=${credential.getSecurityToken()}`); | ||
} else { | ||
console.log(`unset ALIBABACLOUD_SECURITY_TOKEN`); | ||
console.log(`unset ALIBABA_CLOUD_SECURITY_TOKEN`); | ||
console.log(`unset ALICLOUD_SECURITY_TOKEN`); | ||
console.log(`unset SECURITY_TOKEN`); | ||
} | ||
@@ -265,0 +273,0 @@ } |
@@ -139,3 +139,3 @@ 'use strict'; | ||
console.log(`invalid sub-command '${subcommand}'`); | ||
await this.runCommand('help', argv); | ||
await this.runCommand('help', []); | ||
process.exit(-1); | ||
@@ -142,0 +142,0 @@ } |
{ | ||
"name": "@alicloud/acc", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Alibaba Cloud Credentials CLI", | ||
@@ -20,6 +20,6 @@ "bin": { | ||
"dependencies": { | ||
"@alicloud/credentials": "^2.2.0" | ||
"@alicloud/credentials": "^2.2.5" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.7.0", | ||
"eslint": "^9.2.0", | ||
"mocha": "^10.0.0", | ||
@@ -26,0 +26,0 @@ "nyc": "^15.1.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33828
585
Updated@alicloud/credentials@^2.2.5