Skip to content

Commit

Permalink
Use raw JSON for output
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikescops committed Sep 1, 2023
1 parent 92a0638 commit db42a2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/command-handlers/passwords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const runPassword = async (filters: string[] | null, options: { output: '
const foundCredentials = await findCredentials({ db, filters, secrets });

if (output === 'json') {
console.log(JSON.stringify(foundCredentials, null, 4));
console.log(JSON.stringify(foundCredentials));
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/command-handlers/secureNotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const getNote = async (params: GetSecureNote): Promise<void> => {

switch (output) {
case 'json':
console.log(JSON.stringify(matchedNotes, null, 4));
console.log(JSON.stringify(matchedNotes));
break;
case 'text': {
let selectedNote: VaultNote | null = null;
Expand Down

0 comments on commit db42a2d

Please sign in to comment.