Skip to content

Commit 91d633c

Browse files
authored
add dotnet (.NET 10 filebased apps) script template support (#1011)
1 parent e644bfc commit 91d633c

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

Tools/Toolkit/Sources/ToolkitLibrary/Models/Language.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ enum Language {
1313
case swift
1414
case node
1515
case php
16+
case dotnet
1617
case custom(String)
1718

1819
init(_ rawValue: String) {
@@ -33,6 +34,8 @@ enum Language {
3334
self = .node
3435
case "php":
3536
self = .php
37+
case "dotnet":
38+
self = .cs
3639
default:
3740
self = .custom(value)
3841
}
@@ -54,6 +57,8 @@ enum Language {
5457
return "icon-nodejs.png"
5558
case .php:
5659
return "icon-php.png"
60+
case .cs:
61+
return "icon-dotnet.png"
5762
default:
5863
return nil
5964
}
@@ -75,6 +80,8 @@ enum Language {
7580
return "Node"
7681
case .php:
7782
return "PHP"
83+
case .cs:
84+
return ".NET"
7885
case .custom(let name):
7986
return name
8087
}

commands/images/icon-dotnet.png

2.55 KB
Loading
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env dotnet
2+
3+
// Raycast Script Command Template
4+
//
5+
// Dependency: This script requires .NET 10
6+
// Install .NET: https://dotnet.microsoft.com/
7+
//
8+
// Duplicate this file and remove ".template" from the filename to get started.
9+
// See full documentation here: https://github.com/raycast/script-commands
10+
//
11+
// Required parameters:
12+
// @raycast.schemaVersion 1
13+
// @raycast.title My First Script
14+
// @raycast.mode fullOutput
15+
// @raycast.packageName Raycast Scripts
16+
//
17+
// Optional parameters:
18+
// @raycast.icon 🤖
19+
// @raycast.currentDirectoryPath ~
20+
// @raycast.needsConfirmation false
21+
//
22+
// Documentation:
23+
// @raycast.description Write a nice and descriptive summary about your script command here
24+
// @raycast.author Your name
25+
// @raycast.authorURL An URL for one of your social medias
26+
27+
Console.WriteLine("Hello World!");

0 commit comments

Comments
 (0)