Title for identifyable commands
This commit is contained in:
@@ -8,17 +8,19 @@ public sealed class PasteCommand : IIdentifiableUserCommand
|
||||
public const string PasteOverwriteCommandName = "paste_overwrite";
|
||||
public const string PasteSkipCommandName = "paste_skip";
|
||||
|
||||
public static readonly PasteCommand Merge = new(PasteMode.Merge, PasteMergeCommandName);
|
||||
public static readonly PasteCommand Overwrite = new(PasteMode.Overwrite, PasteOverwriteCommandName);
|
||||
public static readonly PasteCommand Skip = new(PasteMode.Skip, PasteSkipCommandName);
|
||||
public static readonly PasteCommand Merge = new(PasteMode.Merge, PasteMergeCommandName, "Paste (merge)");
|
||||
public static readonly PasteCommand Overwrite = new(PasteMode.Overwrite, PasteOverwriteCommandName, "Paste (overwrite)");
|
||||
public static readonly PasteCommand Skip = new(PasteMode.Skip, PasteSkipCommandName, "Paste (skip)");
|
||||
|
||||
public PasteMode PasteMode { get; }
|
||||
|
||||
private PasteCommand(PasteMode pasteMode, string commandName)
|
||||
private PasteCommand(PasteMode pasteMode, string commandName, string title)
|
||||
{
|
||||
PasteMode = pasteMode;
|
||||
UserCommandID = commandName;
|
||||
Title = title;
|
||||
}
|
||||
|
||||
public string UserCommandID { get; }
|
||||
public string Title { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user