Skip to content

Commit 73697e1

Browse files
Accept cell language as command-line argument for engine extensions
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9cbf097 commit 73697e1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/command/create/artifacts/extension.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ export const extensionArtifactCreator: ArtifactCreator = {
6565
function resolveOptions(args: string[]): Record<string, unknown> {
6666
// The first argument is the extension type
6767
// The second argument is the name
68+
// The third argument is the cell language (for engine extensions)
6869
const typeRaw = args.length > 0 ? args[0] : undefined;
6970
const nameRaw = args.length > 1 ? args[1] : undefined;
71+
const cellLanguageRaw = args.length > 2 ? args[2] : undefined;
7072

7173
const options: Record<string, unknown> = {};
7274

@@ -82,6 +84,11 @@ function resolveOptions(args: string[]): Record<string, unknown> {
8284
options[kName] = nameRaw;
8385
}
8486

87+
// For engine type, populate the cell language if provided
88+
if (cellLanguageRaw && options[kType] === "engine") {
89+
options[kCellLanguage] = cellLanguageRaw;
90+
}
91+
8592
return options;
8693
}
8794

0 commit comments

Comments
 (0)