Skip to content

Commit 7cc390d

Browse files
Update cli/src/cli.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 580e96e commit 7cc390d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

cli/src/cli.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,14 @@ async function parseCreateNanoTDFOptions(argv: Partial<mainArgs>): Promise<Creat
318318
}
319319

320320
if (argv.policyType) {
321-
c.policyType = PolicyType[argv.policyType as keyof typeof PolicyType];
321+
switch (argv.policyType) {
322+
case 'EmbeddedEncrypted':
323+
c.policyType = PolicyType.EmbeddedEncrypted;
324+
break;
325+
case 'EmbeddedText':
326+
c.policyType = PolicyType.EmbeddedText;
327+
break;
328+
}
322329
}
323330
// NOTE autoconfigure is not yet supported in nanotdf
324331
delete c.autoconfigure;

0 commit comments

Comments
 (0)