mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
40 lines
1 KiB
C#
40 lines
1 KiB
C#
namespace Flow.Launcher.Plugin
|
|
{
|
|
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
|
|
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();
|
|
}
|
|
}
|
|
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
|
|
}
|