File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/command/create/artifacts Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,10 @@ export const extensionArtifactCreator: ArtifactCreator = {
6565function 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
You can’t perform that action at this time.
0 commit comments