Esempio 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));
     }
 }
Esempio n. 2
0
 public void Exit(RpcShell shell)
 {
     shell.Exit(0);
 }
Esempio n. 3
0
 /// <summary>
 /// Lists available shell commands
 /// </summary>
 protected IEnumerable <string> Commands(RpcShell shell) => shell.GetCommands();