拆分代码7

This commit is contained in:
2026-02-04 21:37:05 +08:00
parent 6dcd49e3c4
commit 66cc5fb257
8 changed files with 365 additions and 290 deletions

View File

@@ -0,0 +1,16 @@
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]}");
}
}
}
}