Editor command
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
namespace FileTime.App.Core.Configuration;
|
||||
|
||||
public class ProgramsConfigurationRoot
|
||||
{
|
||||
public ProgramsConfiguration Linux { get; set; } = new();
|
||||
public ProgramsConfiguration Windows { get; set; } = new();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using FileTime.App.Core.Configuration;
|
||||
|
||||
namespace FileTime.App.Core.Services;
|
||||
|
||||
public interface IProgramsService
|
||||
{
|
||||
ProgramConfiguration? GetEditorProgram(bool getNext = false);
|
||||
void ResetLastGoodEditor();
|
||||
}
|
||||
@@ -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";
|
||||
}
|
||||
Reference in New Issue
Block a user