mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
* rename PluginsLoader.CSharpPlugins to the more generic DotNetPlugins * add AllowedLanguage.IsDotNet which checks for either C# or F#
38 lines
No EOL
877 B
C#
38 lines
No EOL
877 B
C#
namespace Flow.Launcher.Plugin
|
|
{
|
|
public static class AllowedLanguage
|
|
{
|
|
public static string Python
|
|
{
|
|
get { return "PYTHON"; }
|
|
}
|
|
|
|
public static string CSharp
|
|
{
|
|
get { return "CSHARP"; }
|
|
}
|
|
|
|
public static string FSharp
|
|
{
|
|
get { return "FSHARP"; }
|
|
}
|
|
|
|
public static string Executable
|
|
{
|
|
get { return "EXECUTABLE"; }
|
|
}
|
|
|
|
public static bool IsDotNet(string language)
|
|
{
|
|
return language.ToUpper() == CSharp
|
|
|| language.ToUpper() == FSharp;
|
|
}
|
|
|
|
public static bool IsAllowed(string language)
|
|
{
|
|
return IsDotNet(language)
|
|
|| language.ToUpper() == Python.ToUpper()
|
|
|| language.ToUpper() == Executable.ToUpper();
|
|
}
|
|
}
|
|
} |