Editor command

This commit is contained in:
2023-08-22 10:23:52 +02:00
parent 43c9d3ce76
commit 506636789c
8 changed files with 204 additions and 10 deletions

View File

@@ -0,0 +1,7 @@
namespace FileTime.App.Core.Configuration;
public class ProgramsConfigurationRoot
{
public ProgramsConfiguration Linux { get; set; } = new();
public ProgramsConfiguration Windows { get; set; } = new();
}

View File

@@ -0,0 +1,9 @@
using FileTime.App.Core.Configuration;
namespace FileTime.App.Core.Services;
public interface IProgramsService
{
ProgramConfiguration? GetEditorProgram(bool getNext = false);
void ResetLastGoodEditor();
}

View File

@@ -0,0 +1,14 @@
namespace FileTime.App.Core.UserCommand;
public class EditCommand : IIdentifiableUserCommand
{
public const string CommandName = "edit";
public static readonly EditCommand Instance = new();
private EditCommand()
{
}
public string UserCommandID => CommandName;
public string Title => "Edit";
}