aranea-sdk-cli 0.3.5 → 0.3.6
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/commands/auth.js +3 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/commands/auth.js
CHANGED
|
@@ -309,6 +309,7 @@ exports.authCommand
|
|
|
309
309
|
.command('login')
|
|
310
310
|
.description('Login with email and password')
|
|
311
311
|
.option('-e, --email <email>', 'Email address')
|
|
312
|
+
.option('-p, --password <password>', 'Password (for non-interactive/scripting use)')
|
|
312
313
|
.action(async (options) => {
|
|
313
314
|
console.log(chalk_1.default.cyan('\n=== AraneaSDK CLI Login ===\n'));
|
|
314
315
|
try {
|
|
@@ -318,8 +319,8 @@ exports.authCommand
|
|
|
318
319
|
console.error(chalk_1.default.red('Email is required'));
|
|
319
320
|
process.exit(1);
|
|
320
321
|
}
|
|
321
|
-
// Get password
|
|
322
|
-
const password = await promptPassword('Password: ');
|
|
322
|
+
// Get password (from option or prompt)
|
|
323
|
+
const password = options.password || (await promptPassword('Password: '));
|
|
323
324
|
if (!password) {
|
|
324
325
|
console.error(chalk_1.default.red('Password is required'));
|
|
325
326
|
process.exit(1);
|
package/dist/index.js
CHANGED