We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 580e96e commit 7cc390dCopy full SHA for 7cc390d
cli/src/cli.ts
@@ -318,7 +318,14 @@ async function parseCreateNanoTDFOptions(argv: Partial<mainArgs>): Promise<Creat
318
}
319
320
if (argv.policyType) {
321
- c.policyType = PolicyType[argv.policyType as keyof typeof PolicyType];
+ switch (argv.policyType) {
322
+ case 'EmbeddedEncrypted':
323
+ c.policyType = PolicyType.EmbeddedEncrypted;
324
+ break;
325
+ case 'EmbeddedText':
326
+ c.policyType = PolicyType.EmbeddedText;
327
328
+ }
329
330
// NOTE autoconfigure is not yet supported in nanotdf
331
delete c.autoconfigure;
0 commit comments