Ejemplo n.º 1
0
 public string Help
 (
     [Description("command name"), Suggest(nameof(Commands))] string command = default,
     RpcShell shell = default
 )
 {
     if (command == null)
     {
         return(shell.GetHelp());
     }
     else
     {
         return(shell.GetHelp(command));
     }
 }
Ejemplo n.º 2
0
 public void Exit(RpcShell shell)
 {
     shell.Exit(0);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Lists available shell commands
 /// </summary>
 protected IEnumerable <string> Commands(RpcShell shell) => shell.GetCommands();