diff options
author | uzvkl <dennis.kobert@student.kit.edu> | 2019-06-11 23:05:52 +0200 |
---|---|---|
committer | uzvkl <dennis.kobert@student.kit.edu> | 2019-06-11 23:05:52 +0200 |
commit | e6181c24124d97f2fbc932b8a68311e625463156 (patch) | |
tree | c1f097c344ca266b7941c9668590b0fd35c7870a /dsa/DSALib/Commands/List.cs | |
parent | 2490ad5d31fe2ac778ff9303776f0e91f47a2862 (diff) |
Move dsa related stuff to subfolder
Diffstat (limited to 'dsa/DSALib/Commands/List.cs')
-rw-r--r-- | dsa/DSALib/Commands/List.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dsa/DSALib/Commands/List.cs b/dsa/DSALib/Commands/List.cs new file mode 100644 index 0000000..1213f85 --- /dev/null +++ b/dsa/DSALib/Commands/List.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using DSALib.DSA_Game; + +namespace DSALib.Commands +{ + public class List + { + public static string ListAsync(string prop) + { + var res = new List<string>(); + + //int persist = 0; + + switch (prop.ToLower()) + { + case "man": + case "help": + return Help.Get_Specific_Help("List"); + // break; + case "chars": + res.AddRange(Dsa.Chars.Select(x => x.Name)); + break; + case "commands": + // res.AddRange(Help.Commands.Select(x => x.Name)); + res.Add(Help.Get_Generic_Help()); + break; + + default: + res.Add($"Kommando {prop} nicht gefunden"); + break; + } + + + return res.ToString(); + } + } +}
\ No newline at end of file |