private void ExecuteCommand(string input) { string[] parts = input.Split(' '); string command = parts[0]; string[] args = parts.Skip(1).ToArray(); Console.Log("> " + input); Console.Log(ConsoleCommandsDatabase.ExecuteCommand(command, args)); inputHistory.AddNewInputEntry(input); }
public static string ExecuteCommand(string command, params string[] args) { return(ConsoleCommandsDatabase.ExecuteCommand(command, args)); }