sealed commands
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class CloseTabCommand : IIdentifiableUserCommand
|
||||
public sealed class CloseTabCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "close_tab";
|
||||
public static CloseTabCommand Instance { get; } = new CloseTabCommand();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class CopyCommand : IIdentifiableUserCommand
|
||||
public sealed class CopyCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "copy";
|
||||
public static CopyCommand Instance { get; } = new CopyCommand();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class CreateContainer : IIdentifiableUserCommand
|
||||
public sealed class CreateContainer : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "create_container";
|
||||
public static CreateContainer Instance { get; } = new CreateContainer();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class EnterRapidTravelCommand : IIdentifiableUserCommand
|
||||
public sealed class EnterRapidTravelCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "exter_rapid_travel_mode";
|
||||
public static EnterRapidTravelCommand Instance { get; } = new EnterRapidTravelCommand();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class ExitRapidTravelCommand : IIdentifiableUserCommand
|
||||
public sealed class ExitRapidTravelCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "exit_rapid_travel_mode";
|
||||
public static ExitRapidTravelCommand Instance { get; } = new ExitRapidTravelCommand();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class GoUpCommand : IIdentifiableUserCommand
|
||||
public sealed class GoUpCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "go_up";
|
||||
public static GoUpCommand Instance { get; } = new GoUpCommand();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class MarkCommand : IIdentifiableUserCommand
|
||||
public sealed class MarkCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "mark_selected";
|
||||
public static MarkCommand Instance { get; } = new MarkCommand();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class MoveCursorDownCommand : IIdentifiableUserCommand
|
||||
public sealed class MoveCursorDownCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "move_cursor_down";
|
||||
public static MoveCursorDownCommand Instance { get; } = new MoveCursorDownCommand();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class MoveCursorUpCommand : IIdentifiableUserCommand
|
||||
public sealed class MoveCursorUpCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "move_cursor_up";
|
||||
public static MoveCursorUpCommand Instance { get; } = new MoveCursorUpCommand();
|
||||
|
||||
@@ -2,7 +2,7 @@ using FileTime.Core.Models;
|
||||
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class OpenContainerCommand : IUserCommand
|
||||
public sealed class OpenContainerCommand : IUserCommand
|
||||
{
|
||||
public AbsolutePath Path { get; }
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class OpenSelectedCommand : IIdentifiableUserCommand
|
||||
public sealed class OpenSelectedCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "open_selected";
|
||||
public static OpenSelectedCommand Instance { get; } = new OpenSelectedCommand();
|
||||
|
||||
@@ -2,7 +2,7 @@ using FileTime.App.Core.Models.Enums;
|
||||
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class PasteCommand : IIdentifiableUserCommand
|
||||
public sealed class PasteCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string PasteMergeCommandName = "paste_merge";
|
||||
public const string PasteOverwriteCommandName = "paste_overwrite";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class SwitchToTabCommand : IIdentifiableUserCommand
|
||||
public sealed class SwitchToTabCommand : IIdentifiableUserCommand
|
||||
{
|
||||
private const string SwitchToTabBase = "switch_to_tab";
|
||||
public const string SwitchToTab1CommandName = SwitchToTabBase + "1";
|
||||
|
||||
Reference in New Issue
Block a user