Files
CMLeonOS/shell/Commands/Utility/HistoryCommand.cs
2026-02-04 21:37:05 +08:00

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]}");
}
}
}
}