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

Method TryGetNestedCommand

client/Options.cs:1764–1784  ·  view source on GitHub ↗
(List<string> extra)

Source from the content-addressed store, hash-verified

1762 }
1763
1764 Command TryGetNestedCommand(List<string> extra) {
1765 if (NestedCommandSets == null)
1766 return null;
1767
1768 var nestedCommands = NestedCommandSets.Find(c => c.Suite == extra[0]);
1769 if (nestedCommands == null)
1770 return null;
1771
1772 var extraCopy = new List<string>(extra);
1773 extraCopy.RemoveAt(0);
1774 if (extraCopy.Count == 0)
1775 return null;
1776
1777 var command = nestedCommands.GetCommand(extraCopy);
1778 if (command != null) {
1779 extra.Clear();
1780 extra.AddRange(extraCopy);
1781 return command;
1782 }
1783 return null;
1784 }
1785 }
1786
1787 internal class HelpCommand : Command {

Callers

nothing calls this directly

Calls 3

RemoveAtMethod · 0.80
GetCommandMethod · 0.80
ClearMethod · 0.80

Tested by

no test coverage detected