mirror of
https://github.com/ShiftOS-Rewind/ShiftOS.git
synced 2025-01-23 18:22:16 +00:00
25 lines
763 B
C#
25 lines
763 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ShiftOS.Main.Terminal.Commands
|
|
{
|
|
public class Help : TerminalCommand
|
|
{
|
|
public override string Name { get; } = "help";
|
|
public override string Summary { get; } = "Shows the list of valid commands.";
|
|
public override string Usage { get; } = "n/a";
|
|
public override bool Unlocked { get; set; } = false;
|
|
|
|
public override void Run(params string[] args)
|
|
{
|
|
WriteLine("List of valid commands for ShiftOS.\r\n");
|
|
foreach (var t in TerminalBackend.instances)
|
|
{
|
|
WriteLine($"{t.Name}: {t.Summary}");
|
|
}
|
|
}
|
|
}
|
|
}
|