Files
FluentTerminal/FluentTerminal.Models/ExecutedCommand.cs
T
Aleksandar Pesic a872d126ce "Recent" menu implemented (#585)
* Refactoring CommandHistoryService to prepare "Recent" menu item feature.

* "Recent" menu implemented, but still not bound to commands.

* "Recent" menu implemented.
2019-11-20 18:17:40 +01:00

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()
};
}
}