diff options
| author | Michael <[email protected]> | 2017-06-16 21:10:13 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-06-16 21:10:13 -0400 |
| commit | 764cdc940f9362485e177ec3a011faff77745bc0 (patch) | |
| tree | a1b1a1a1f27521772da171ff455d5b3828ecf866 /ShiftOS_TheReturn/Commands.cs | |
| parent | 79fe2101aef62b744b150203dee6953b0d17f5aa (diff) | |
| download | shiftos_thereturn-764cdc940f9362485e177ec3a011faff77745bc0.tar.gz shiftos_thereturn-764cdc940f9362485e177ec3a011faff77745bc0.tar.bz2 shiftos_thereturn-764cdc940f9362485e177ec3a011faff77745bc0.zip | |
programs are treated as commands
Diffstat (limited to 'ShiftOS_TheReturn/Commands.cs')
| -rw-r--r-- | ShiftOS_TheReturn/Commands.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ShiftOS_TheReturn/Commands.cs b/ShiftOS_TheReturn/Commands.cs index 9221bba..3e00c18 100644 --- a/ShiftOS_TheReturn/Commands.cs +++ b/ShiftOS_TheReturn/Commands.cs @@ -248,11 +248,11 @@ namespace ShiftOS.Engine var sb = new StringBuilder(); sb.AppendLine("Retrieving help data."); //print all unique namespaces. - foreach (var n in TerminalBackend.Commands.Select(x => x.CommandInfo).Distinct().OrderBy(x=>x.name)) + foreach (var n in TerminalBackend.Commands.Where(x=>!(x is TerminalBackend.WinOpenCommand) && Shiftorium.UpgradeInstalled(x.Dependencies) && x.CommandInfo.hide == false).OrderBy(x=>x.CommandInfo.name)) { - sb.Append(n.name); + sb.Append(n.CommandInfo.name); if (Shiftorium.UpgradeInstalled("help_descriptions")) - sb.Append(" - " + n.description); + sb.Append(" - " + n.CommandInfo.description); sb.AppendLine(); } @@ -411,7 +411,7 @@ shiftorium.buy{{upgrade:""{upg.ID}""}}"); return true; } - [Command("shiftorium", description ="Lists all available Shiftorium upgrades.")] + [Command("upgrades", description ="Lists all available Shiftorium upgrades.")] public static bool ListAll(Dictionary<string, object> args) { try |
