mirror of
https://github.com/bitwarden/cli
synced 2025-12-14 15:23:36 +00:00
2
jslib
2
jslib
Submodule jslib updated: 44b86f5dd0...b816ddddff
@@ -15,7 +15,7 @@ export class ExportCommand {
|
|||||||
constructor(private cryptoService: CryptoService, private exportService: ExportService) { }
|
constructor(private cryptoService: CryptoService, private exportService: ExportService) { }
|
||||||
|
|
||||||
async run(password: string, cmd: program.Command): Promise<Response> {
|
async run(password: string, cmd: program.Command): Promise<Response> {
|
||||||
const canInteract = process.stdout.isTTY && process.env.BW_NOINTERACTION !== 'true';
|
const canInteract = process.env.BW_NOINTERACTION !== 'true';
|
||||||
if ((password == null || password === '') && canInteract) {
|
if ((password == null || password === '') && canInteract) {
|
||||||
const answer: inquirer.Answers = await inquirer.createPromptModule({ output: process.stderr })({
|
const answer: inquirer.Answers = await inquirer.createPromptModule({ output: process.stderr })({
|
||||||
type: 'password',
|
type: 'password',
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export class UnlockCommand {
|
|||||||
private cryptoFunctionService: CryptoFunctionService) { }
|
private cryptoFunctionService: CryptoFunctionService) { }
|
||||||
|
|
||||||
async run(password: string, cmd: program.Command) {
|
async run(password: string, cmd: program.Command) {
|
||||||
const canInteract = process.stdout.isTTY && process.env.BW_NOINTERACTION !== 'true';
|
const canInteract = process.env.BW_NOINTERACTION !== 'true';
|
||||||
if ((password == null || password === '') && canInteract) {
|
if ((password == null || password === '') && canInteract) {
|
||||||
const answer: inquirer.Answers = await inquirer.createPromptModule({ output: process.stderr })({
|
const answer: inquirer.Answers = await inquirer.createPromptModule({ output: process.stderr })({
|
||||||
type: 'password',
|
type: 'password',
|
||||||
|
|||||||
@@ -645,7 +645,7 @@ export class Program extends BaseProgram {
|
|||||||
await this.exitIfNotAuthed();
|
await this.exitIfNotAuthed();
|
||||||
const hasKey = await this.main.cryptoService.hasKey();
|
const hasKey = await this.main.cryptoService.hasKey();
|
||||||
if (!hasKey) {
|
if (!hasKey) {
|
||||||
const canInteract = process.stdout.isTTY && process.env.BW_NOINTERACTION !== 'true';
|
const canInteract = process.env.BW_NOINTERACTION !== 'true';
|
||||||
if (canInteract) {
|
if (canInteract) {
|
||||||
const command = new UnlockCommand(this.main.cryptoService, this.main.userService,
|
const command = new UnlockCommand(this.main.cryptoService, this.main.userService,
|
||||||
this.main.cryptoFunctionService);
|
this.main.cryptoFunctionService);
|
||||||
|
|||||||
Reference in New Issue
Block a user