Update editor

This commit is contained in:
2026-02-03 21:49:14 +09:00
parent 9fcf06dbe4
commit 59991f47d5
88 changed files with 1157 additions and 1288 deletions

View File

@@ -0,0 +1,35 @@
namespace Ghost.Editor.Models;
[AttributeUsage(AttributeTargets.Property)]
internal sealed class ArgumentNameAttribute : Attribute
{
public string Name
{
get;
}
public ArgumentNameAttribute(string name)
{
Name = name;
}
}
internal class LaunchArguments
{
[ArgumentName("project-path")]
public string ProjectPath
{
get; set;
} = string.Empty;
[ArgumentName("project-name")]
public string ProjectName
{
get; set;
} = string.Empty;
public bool IsValid()
{
return Directory.Exists(ProjectPath) && !string.IsNullOrWhiteSpace(ProjectName);
}
}