MCPcopy Create free account
hub / github.com/CCob/lsarelayx / AddNestedCommands

Method AddNestedCommands

client/Options.cs:1845–1854  ·  view source on GitHub ↗
(List<KeyValuePair<string, Command>> commands, string outer, CommandSet value)

Source from the content-addressed store, hash-verified

1843 }
1844
1845 void AddNestedCommands(List<KeyValuePair<string, Command>> commands, string outer, CommandSet value) {
1846 foreach (var v in value) {
1847 commands.Add(new KeyValuePair<string, Command>($"{outer}{value.Suite} {v.Name}", v));
1848 }
1849 if (value.NestedCommandSets == null)
1850 return;
1851 foreach (var nc in value.NestedCommandSets) {
1852 AddNestedCommands(commands, $"{outer}{value.Suite} ", nc);
1853 }
1854 }
1855
1856 internal void WriteUnknownCommand(string unknownCommand) {
1857 CommandSet.Error.WriteLine(CommandSet.Options.MessageLocalizer($"{CommandSet.Suite}: Unknown command: {unknownCommand}"));

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected