mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 11:37:01 +00:00
17 lines
383 B
C#
17 lines
383 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace CMLeonOS.Commands.Utility
|
|
{
|
|
public static class HistoryCommand
|
|
{
|
|
public static void ShowHistory(List<string> commandHistory)
|
|
{
|
|
for (int i = 0; i < commandHistory.Count; i++)
|
|
{
|
|
Console.WriteLine($"{i + 1}: {commandHistory[i]}");
|
|
}
|
|
}
|
|
}
|
|
}
|