Skip to content

Commit 78cbc4d

Browse files
committed
Updating the template list to match the current templates
1 parent 3d7d831 commit 78cbc4d

File tree

1 file changed

+59
-19
lines changed

1 file changed

+59
-19
lines changed

src/Cli/func/Helpers/DotnetHelpers.cs

Lines changed: 59 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -154,25 +154,39 @@ await TemplateOperationAsync(
154154

155155
internal static string GetTemplateShortName(string templateName) => templateName.ToLowerInvariant() switch
156156
{
157-
"blobtrigger" => "blob",
158-
"eventgridblobtrigger" => "eventgridblob",
159-
"cosmosdbtrigger" => "cosmos",
160-
"durablefunctionsorchestration" => "durable",
161-
"eventgridtrigger" => "eventgrid",
162-
"eventgridcloudeventtrigger" => "eventgridcloudevent",
163-
"eventhubtrigger" => "eventhub",
164-
"httptrigger" => "http",
165-
"iothubtrigger" => "iothub",
166-
"kafkatrigger" => "kafka",
167-
"kafkaoutput" => "kafkao",
168-
"queuetrigger" => "queue",
169-
"sendgrid" => "sendgrid",
170-
"servicebusqueuetrigger" => "squeue",
171-
"servicebustopictrigger" => "stopic",
172-
"timertrigger" => "timer",
173-
"daprpublishoutputbinding" => "daprPublishOutputBinding",
174-
"daprserviceinvocationtrigger" => "daprServiceInvocationTrigger",
175-
"daprtopictrigger" => "daprTopicTrigger",
157+
"Http Trigger" => "http",
158+
"Blob Trigger" => "blob",
159+
"Timer Trigger" => "timer",
160+
"Queue Trigger" => "queue",
161+
"Cosmos DB Trigger" => "cosmos",
162+
"Dapr Publish Output Binding" => "daprPublishOutputBinding",
163+
"Dapr Service Invocation Trigger" => "daprServiceInvocationTrigger",
164+
"Dapr Topic Trigger" => "daprTopicTrigger",
165+
"Durable Functions Entity Class" => "durableentityclass",
166+
"Durable Functions Entity Function" => "durableentityfunction",
167+
"Durable Functions Orchestration" => "durable",
168+
"Event Grid Blob Trigger" => "eventgridblob",
169+
"Event Grid Trigger" => "eventgrid",
170+
"Event Hub Trigger" => "eventhub",
171+
"Kusto Input Binding" => "kustoinput",
172+
"Kusto Output Binding" => "kustooutput",
173+
"MySql Input Binding" => "mysqlinput",
174+
"MySql Output Binding" => "mysqloutput",
175+
"MySql Trigger Binding" => "mysqltrigger",
176+
"Rabbit MQ Trigger" => "rqueue",
177+
"Service Bus Queue Trigger" => "squeue",
178+
"Service Bus Topic Trigger" => "stopic",
179+
"SignalR Trigger" => "signalr",
180+
"Sql Input Binding" => "sqlinput",
181+
"Sql Output Binding" => "sqloutput",
182+
"Sql Trigger Binding" => "sqltrigger",
183+
"Durable Functions Entity Orchestration" => "durableentity",
184+
"Event Grid Cloud Event Trigger" => "eventgridcloudevent",
185+
"Http Trigger With Open API" => "httpOpenAPI",
186+
"Iot Hub Trigger" => "iothub",
187+
"Kafka Output" => "kafkao",
188+
"Kafka Trigger" => "kafka",
189+
"Send Grid" => "sendgrid",
176190
_ => throw new ArgumentException($"Unknown template '{templateName}'", nameof(templateName))
177191
};
178192

@@ -195,6 +209,19 @@ internal static IEnumerable<string> GetTemplates(WorkerRuntime workerRuntime)
195209
"DaprPublishOutputBinding",
196210
"DaprServiceInvocationTrigger",
197211
"DaprTopicTrigger",
212+
"DurableFunctionsEntityClass",
213+
"DurableFunctionsEntityFunction",
214+
"DurableFunctionsOrchestration",
215+
"KustoInputBinding",
216+
"KustoOutputBinding",
217+
"MySqlInputBinding",
218+
"MySqlOutputBinding",
219+
"MySqlTriggerBinding",
220+
"RabbitMQTrigger",
221+
"SignalRTrigger",
222+
"SqlInputBinding",
223+
"SqlOutputBinding",
224+
"SqlTriggerBinding"
198225
};
199226
}
200227

@@ -218,6 +245,19 @@ internal static IEnumerable<string> GetTemplates(WorkerRuntime workerRuntime)
218245
"DaprPublishOutputBinding",
219246
"DaprServiceInvocationTrigger",
220247
"DaprTopicTrigger",
248+
"DurableFunctionsEntityOrchestration",
249+
"EventGridBlobTrigger",
250+
"HttpTriggerWithOpenAPI",
251+
"KustoInputBinding",
252+
"KustoOutputBinding",
253+
"MySqlInputBinding",
254+
"MySqlOutputBinding",
255+
"MySqlTriggerBinding",
256+
"RabbitMQTrigger",
257+
"SignalRTrigger",
258+
"SqlInputBinding",
259+
"SqlOutputBinding",
260+
"SqlTriggerBinding"
221261
};
222262
}
223263

0 commit comments

Comments
 (0)