1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

session key

This commit is contained in:
Kyle Spearrin 2018-05-17 16:40:43 -04:00
parent f599a7fe62
commit e671375749

View File

@ -38,7 +38,7 @@ export class Program {
.option('--pretty', 'Format stdout.') .option('--pretty', 'Format stdout.')
.option('--quiet', 'Do not return anything to stdout.') .option('--quiet', 'Do not return anything to stdout.')
.option('--raw', 'Return raw output instead a descriptive message.') .option('--raw', 'Return raw output instead a descriptive message.')
.option('--session <session>', 'Pass session token instead of reading from env.') .option('--session <session>', 'Pass session key instead of reading from env.')
.version(this.main.platformUtilsService.getApplicationVersion(), '-v, --version'); .version(this.main.platformUtilsService.getApplicationVersion(), '-v, --version');
program.on('option:pretty', () => { program.on('option:pretty', () => {
@ -91,7 +91,7 @@ export class Program {
writeLn(''); writeLn('');
writeLn(' See docs for valid `method` enum values.'); writeLn(' See docs for valid `method` enum values.');
writeLn(''); writeLn('');
writeLn(' Pass `--raw` option to only get session token.'); writeLn(' Pass `--raw` option to only get session key.');
writeLn(''); writeLn('');
writeLn(' Examples:'); writeLn(' Examples:');
writeLn(''); writeLn('');
@ -126,7 +126,7 @@ export class Program {
program program
.command('lock') .command('lock')
.description('Lock the vault and destroy the current session token.') .description('Lock the vault and destroy the current session key.')
.on('--help', () => { .on('--help', () => {
writeLn('\n Examples:'); writeLn('\n Examples:');
writeLn(''); writeLn('');
@ -142,13 +142,13 @@ export class Program {
program program
.command('unlock [password]') .command('unlock [password]')
.description('Unlock the vault and obtain a new session token.') .description('Unlock the vault and obtain a new session key.')
.on('--help', () => { .on('--help', () => {
writeLn('\n Notes:'); writeLn('\n Notes:');
writeLn(''); writeLn('');
writeLn(' After unlocking, any previous session tokens will no longer be valid.'); writeLn(' After unlocking, any previous session keys will no longer be valid.');
writeLn(''); writeLn('');
writeLn(' Pass `--raw` option to only get session token.'); writeLn(' Pass `--raw` option to only get session key.');
writeLn(''); writeLn('');
writeLn(' Examples:'); writeLn(' Examples:');
writeLn(''); writeLn('');