mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
拆分代码7
This commit is contained in:
16
shell/Commands/Utility/HistoryCommand.cs
Normal file
16
shell/Commands/Utility/HistoryCommand.cs
Normal 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]}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user