Skip to main content

BaseCommands

A static class in Root.Township, Alta.Console.Commands.

Console module help: lists, searches and describes modules and commands.

Fields​

2 private and internal fields
MemberWhat it is
private static StringBuilder logBuilderShared builder for the command output.
private static Logger loggerNLog logger for this module.

Methods​

MemberWhat it is
static string Inspect(string[] path)Command help [path] (alias inspect): details of a module or command, showing only parts you can use.
static string InspectFull(string[] path)Command help full: details of a module or command, including parts whose requirements aren't met.
static string List()Command help (alias list): a welcome line and every base module you can use, with descriptions.
static HashSet<Module> Modules()Command help modules: returns every module.
static string Search(string searchString)Command help search (alias find): lists modules and commands whose name or description contains the text, ignoring case.
6 private and internal methods
MemberWhat it is
private static string Inspect(string[] path, bool isShowingAll)Command help [path] (alias inspect): details of a module or command, showing only parts you can use.
private static void LogCommand(Command command, int indentLevel = 0)Adds a command's description, parameters (with enum values) and return type properties to the output.
private static void LogModule(bool isShowingAll, Module module)Adds a module's submodules and commands to the output.
private static void PrintPart(BasePart basePart, StringBuilder logBuilder)Adds a module or command name and its description to the output.
private static IEnumerable<BaseCommands.SearchResult> SearchModule(Module module, string searchString) (iterator)Searches a module and all its submodules and commands.
private static bool SearchString(string stringToSearch, string tryingToFind)Case-insensitive contains check that is false for null.