* Refactoring CommandHistoryService to prepare "Recent" menu item feature. * "Recent" menu implemented, but still not bound to commands. * "Recent" menu implemented.
23 lines
590 B
C#
23 lines
590 B
C#
using System;
|
|
|
|
namespace FluentTerminal.Models
|
|
{
|
|
public class ExecutedCommand
|
|
{
|
|
public string Value { get; set; }
|
|
|
|
public bool IsProfile { get; set; }
|
|
|
|
public DateTime LastExecution { get; set; }
|
|
|
|
public int ExecutionCount { get; set; }
|
|
|
|
public ShellProfile ShellProfile { get; set; }
|
|
|
|
public ExecutedCommand Clone() => new ExecutedCommand
|
|
{
|
|
Value = Value, IsProfile = IsProfile, LastExecution = LastExecution, ExecutionCount = ExecutionCount,
|
|
ShellProfile = ShellProfile?.Clone()
|
|
};
|
|
}
|
|
} |