Skip to content

Commit

Permalink
Merge branch 'main' into feature/encryption-info-versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
dmihalcik-virtru authored Jul 17, 2024
2 parents 938d2ea + 0e1426b commit 3b3d766
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ async function tdf3EncryptParamsFor(argv: Partial<mainArgs>): Promise<EncryptPar
if (argv['users-with-access']?.length) {
c.setUsersWithAccess(argv['users-with-access'].split(','));
}
// use offline mode, we do not have upsert for v2
c.setOffline();
// FIXME TODO must call file.close() after we are done
const file = await open(argv.file as string);
c.setStreamSource(file.readableWebStream());
const buffer = await processDataIn(argv.file as string);
c.setBufferSource(buffer);
return c.build();
}

Expand Down

0 comments on commit 3b3d766

Please sign in to comment.