ShiftOS-Rewind/ShiftOS.Main/Terminal/Commands/Help.cs

26 lines
763 B
C#
Raw Normal View History

2017-11-18 18:32:37 -06:00
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}");
}
}
}
}