1
0
mirror of https://github.com/bitwarden/cli synced 2025-12-16 08:13:21 +00:00

password is not needed for import

This commit is contained in:
Kyle Spearrin
2018-08-16 14:43:12 -04:00
parent fdc116c957
commit e3c2be9e84
3 changed files with 10 additions and 30 deletions

View File

@@ -371,7 +371,7 @@ export class Program {
});
program
.command('import [format] [input] [password]')
.command('import [format] [input]')
.description('Import vault data from a file.')
.option('--formats', 'List formats')
.on('--help', () => {
@@ -379,12 +379,12 @@ export class Program {
writeLn('');
writeLn(' bw import --formats');
writeLn(' bw import bitwardencsv ./from/source.csv');
writeLn(' bw import keepass2xml keepass_backup.xml myPassword123');
writeLn(' bw import keepass2xml keepass_backup.xml');
})
.action(async (format, filepath, password, cmd) => {
.action(async (format, filepath, cmd) => {
await this.exitIfLocked();
const command = new ImportCommand(this.main.cryptoService, this.main.importService);
const response = await command.run(format, filepath, password, cmd);
const command = new ImportCommand(this.main.importService);
const response = await command.run(format, filepath, cmd);
this.processResponse(response);
});